File size: 733 Bytes
5fae594 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
<html>
<head>
<title>clarinet.js profiler</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="css/mocha.css" />
<script src="../clarinet.js"></script>
<script src="twitter.js"></script>
<script src="basic.js"></script>
<script>
onload = function(){
var string = JSON.stringify(BASIC)
, p = clarinet.parser()
, max = 1000
, iters = 5
;
while (iters--) {
start = Date.now();
for (var i = 0; i < max; i++) p.write(string);
console.log("clp: %s", Date.now()-start);
}
};
</script>
</head>
<body>
</body>
</html> |