Created
October 15, 2013 06:12
-
-
Save tmaeda1981jp/6987247 to your computer and use it in GitHub Desktop.
simple benchmark.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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