Double exclamation mark vs Boolean

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Double Exclamation Mark
!! (-1); 
!! 0; 
!! 1; 
!! 2;
ready
Boolean
Boolean(-1);
Boolean(0);
Boolean(1);
Boolean(2);
ready

Revisions

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