Round a floating point number

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Math.round()
Math.round(Math.random() * 1e4)
ready
OR with 0 (x | 0)
(Math.random() * 1e4) | 0
ready

Revisions

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