Strict number comparison

JavaScript performance comparison

Test case created by Yann VR

Preparation code

Benchmark.prototype.setup = function() {
    var nb1 = 12345, nb2 = 123456;

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Number comparison
nb1 == nb1
nb1 == nb2
Strict number comparison
nb1 === nb1
nb1 === nb2

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

Compare results of other browsers


Comment form temporarily disabled.

Add a comment