tilde test

Benchmark created by Wizek on


Preparation HTML

<script>
  var a = [-4799, -2813, -4098, -4966, -1478, 5709, 2661, 1999, 3296, 3581]
  
  var r = []
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
(x+1)*-1
for (var i = 0; i < a.length; i++) {
 r[i] = (a[i] + 1) * -1
};
ready
~x
for (var i = 0; i < a.length; i++) {
 r[i] = ~a[i]
};
ready

Revisions

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