Skip to content

Commit

Permalink
add builds for browser, including a very simple bench runner
Browse files Browse the repository at this point in the history
  • Loading branch information
phpnode committed Jul 1, 2014
1 parent ae7719d commit 5e4b1db
Show file tree
Hide file tree
Showing 7 changed files with 14,971 additions and 2 deletions.
22 changes: 22 additions & 0 deletions dist/bench.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!doctype html>
<html>
<head>
<title>Fast.js Benchmarks</title>
</head>
<body>
<h1>Please open your JavaScript console, then <button id="starter" onclick="startAll()">Click to Start</button></h1>
<script>
function startAll () {
var old = console.log;
console.log = function (message) {
old.call(console, ('' + message).replace(/\u001b\[(?:[0-9]{1,3}(?:;[0-9]{1,3})*)?[m|K]/g, ''));
};
document.getElementById('starter').remove();
var node = document.createElement('script');
node.src = './bench.js';
document.body.appendChild(node);

}
</script>
</body>
</html>
Loading

0 comments on commit 5e4b1db

Please sign in to comment.