fabric.js/test/benchmark/index.html

29 lines
No EOL
1.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Fabric.js benchmark</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="lib/unittest.css" type="text/css">
<!--[if lt IE 9]>
<script type="text/javascript" src="../lib/excanvas.js"></script>
<![endif]-->
<script src="../../dist/all.min.js" type="text/javascript"></script>
<style type="text/css" media="screen">
h3 { margin: 0; padding: 0; }
p { margin: 0; }
#results { background: #ffc; display: inline-block; padding: 5px; margin: 20px 0; }
.canvas_container { position: relative; border: 1px solid #aaa; }
</style>
</head>
<body>
<h2>Fabric.js benchmark</h2>
<p>Drawing 150 randomly positioned, randomly colored and randomly rotated circles, rectangles and triangles.</p>
<div id="results"></div>
<canvas id="test" width="600" height="600"></canvas>
<script src="benchmark.js" type="text/javascript"></script>
</body>
</html>