indexOf

Benchmark created by Dan Beam on


Preparation HTML

<script>
  var a = 'blah blah blah cool blah';
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
>= 0
a.indexOf('cool') >= 0
ready
> -1
a.indexOf('cool') > -1
ready
!= -1
a.indexOf('cool') != -1
ready
!== -1
a.indexOf('cool') !== -1
ready
!!~
!!~a.indexOf('cool')
ready

Revisions

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

  • Revision 1: published by Dan Beam on