trunc vs remainder

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
trunc
console.log(Math.trunc(50/4)*4)
ready
remainder
console.log(50-50%4)
ready

Revisions

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