String vs Subtract

Benchmark created by JR on


Setup

n10 = 1262242800000
    nnow = +new Date;
    
    snow = nnow + ''
    slen = snow.length - 2

Test runner

Ready to run.

Testing in
TestOps/sec
Subtract
nnow - n10
ready
String
snow.slice(0, slen)
ready

Revisions

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