Refinement Costs

Benchmark created on


Setup

const n = 1;
const s = '';
const u = null;
const o = { foo: 1 };

Test runner

Ready to run.

Testing in
TestOps/sec
typeof string (success)
typeof s === 'string'
ready
typeof number (success)
typeof n === 'number'
ready
null check (success)
u === null
ready
null check (failed)
s === null
ready
in check (success)
'foo' in o
ready
not in check (success)
!('bar' in o)
ready

Revisions

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