To boolean

Benchmark created by Maks Kramarenko on


Setup

const a = 113133134134;
  const b = 0;

Test runner

Ready to run.

Testing in
TestOps/sec
Boolean()
const c = Boolean(a);
const d = Boolean(b);
ready
not not
const c = !!a;
const d = !!b;
ready

Revisions

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

  • Revision 1: published by Maks Kramarenko on