Skip to content

Instantly share code, notes, and snippets.

@tmaeda1981jp
Created October 15, 2013 06:12
Show Gist options
  • Save tmaeda1981jp/6987247 to your computer and use it in GitHub Desktop.
Save tmaeda1981jp/6987247 to your computer and use it in GitHub Desktop.
simple benchmark.
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<title>benchmark</title>
</head>
<body>
<script type="text/javascript">
(function() {
var start = new Date().getTime(), score = 0;
while (new Date().getTime() - start < 100) {
Math.random();
score++;
}
document.write('score: ' + score);
}());
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment