not-vs-round

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
round
var i = 100000;
var array = [];
while ( i-- ) {
  array[ i ] = Math.round(Math.random() * 100);
}
ready
not
var i = 100000;
var array = [];
while ( i-- ) {
  array[ i ] = ~~(Math.random() * 100);
}
ready

Revisions

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