Bitwise not and search

Benchmark created on


Setup

var foo = 'foo bar';

Test runner

Ready to run.

Testing in
TestOps/sec
Old school
foo.search('bar') !== -1;
ready
bitwise not
!!~foo.search('bar');
ready

Revisions

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