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
Experimenting with some different for loop structures. I'm working on a line chart that plots several thousand data points in real time. The goal is to draw 3000 points at a steady 60 fps.
var data = [];
for(var d = 0; d < 3000; d++){
data.push(Math.random() * 100);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Plain ol for loop |
| ready |
Loop with known length |
| ready |
Deincreent loop |
| ready |
Deincreent loop known length |
| ready |
shortloop |
| ready |
shortloop known length |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.