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 recipients = [];
var start = performance.now();
for (i=1000000;i>0;i--){
var email = Math.random().toString(36).substring(12);
var first_name = Math.random().toString(36).substring(7);
var last_name = Math.random().toString(36).substring(9);
var step = Math.floor(Math.random() * 10)
recipients.push({
email: email,
first_name: first_name,
last_name: last_name,
step: step,
created_on: "123",
next_thing: "123"
})
}
var search = "abc";
var duration = performance.now() - start;
console.log(duration + " milliseconds")
Ready to run.
Test | Ops/sec | |
---|---|---|
recipients |
| ready |
step |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.