12312323123

JavaScript performance comparison

Test case created by ryan

Info

Math.floor(Math.random() * 100000)

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
1
var a = Math.floor(Math.random() * 100000);
pending…
2
var a = Math.random().toFixed(4);
pending…
3
var a = Math.floor( 1000 * Math.random() );
pending…
4
var a = new Date().valueOf()
pending…

You can edit these tests or add even more tests to this page by appending /edit to the URL.

Compare results of other browsers

0 comments

Add a comment