Decimal to Integer

Benchmark created on


Setup

a = [255, 255, 255]

Test runner

Ready to run.

Testing in
TestOps/sec
parseInt
average = parseInt((a[0] + a[1] + a[2]) / 3)
ready
Math.floor
average = Math.floor((a[0] + a[1] + a[2]) / 3)
ready

Revisions

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