instance vs isArray

Benchmark created on


Setup

var instance = [] instanceof Array;
  var isArr = Array.isArray([])

Test runner

Ready to run.

Testing in
TestOps/sec
instanceOf
console.log(instance);
ready
isArray
console.log(isArr);
ready

Revisions

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