jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
all the conversions I can think of
var abc = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.10, '0.01', '0.02', '0.03', '0.04', '0.05', '0.06', '0.07', '0.08', '0.09', '0.10'];
Ready to run.
Test | Ops/sec | |
---|---|---|
Number() |
| ready |
parsetInt() |
| ready |
parseFloat() |
| ready |
implicit |
| ready |
minus 0 hack |
| ready |
0| hack |
| ready |
valueOf() |
| ready |
>>0 |
| ready |
Math.floor() |
| ready |
Math.round() |
| ready |
~~ |
| ready |
>>>0 |
| ready |
/1 |
| ready |
0+ |
| ready |
+0 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.