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
var s = 'This is a test. 1900-12-32 -- 1200-02-10';
var pattern = /[0-9]/g;
var map = {'0':'9', '1':'8', '2':'7', '3':'6', '4':'5', '5':'4', '6':'3', '7':'2', '8':'1', '9':'0'};
var map_func = function(m) { return map[m]; };
var parseint_func = function(m) { return '' + (9 - parseInt(m)); };
Ready to run.
Test | Ops/sec | |
---|---|---|
parseInt |
| ready |
mapping |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.