dequels vs tequals

Benchmark created on


Description

Test performance of == vs ===

Setup

var i = 0;
    test = [];
    while(i < 10000) {
      test.push(i++);
    }

Test runner

Ready to run.

Testing in
TestOps/sec
dequals
test.filter(function(elem) {
  return typeof elem == 'number';
});
 
ready
tequals
test.filter(function(elem) {
  return typeof elem === 'number';
});
 
ready

Revisions

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