js-exp

JavaScript performance comparison

Test case created by jermel

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Math.pow
for (var i = 0; i < 300; i++) {
    Math.pow(10,i);
}
pending…
String to num
var num = "1e20";
for (var i = 0; i < 300; i++) {
    +(num)
}
pending…
new string
var num = "1e"
for (var i = 0; i < 300; i++) {
    (num+i).toString();
}
pending…
10^300
for (var i = 0; i < 300; i++) {
Math.pow(10,300)
}
pending…
1e300
for (var i = 0; i < 300; i++) {
1E300
}
pending…
decimal
for (var i = 0; i < 300; i++) {
9223372036854776000
}
pending…
octal
for (var i = 0; i < 300; i++) {
0777777777777777777777
}
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