Whole Integer Division (v6)

Revision 6 of this benchmark created on


Setup

a=7
    b=100

Test runner

Ready to run.

Testing in
TestOps/sec
Regular Division (no var)
7/100
ready
Math.floor (no var)
Math.floor(7/100)
ready
Double NOT (no var)
~~(7/100)
ready
OR 0 (no var)
7/100|0
ready
Right Shift 0 (no var)
7/100>>0
ready
Subtract Remainder (no var)
(7-(7%100))/3
ready
Regular Division
a/b
ready
Math.floor
Math.floor(a/b)
ready
Double NOT
~~(a/b)
ready
OR 0
a/b|0
ready
Right Shift 0
a/b>>0
ready
Subtract Remainder
(a-(a%b))/b
ready

Revisions

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