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 arrayToCopy = `Extended kindness trifling remember he confined outlived if. Assistance sentiments yet unpleasing say. Open they an busy they my such high. An active dinner wishes at unable hardly no talked on. Immediate him her resolving his favourite. Wished denote abroad at branch at.
An country demesne message it. Bachelor domestic extended doubtful as concerns at. Morning prudent removal an letters by. On could my in order never it. Or excited certain sixteen it to parties colonel. Depending conveying direction has led immediate. Law gate her well bed life feet seen rent. On nature or no except it sussex.`.split('');
var shallowCopy = [];
Ready to run.
Test | Ops/sec | |
---|---|---|
Array Concat |
| ready |
Array Slice |
| ready |
For Loop |
| ready |
For Loop With Declared Length |
| ready |
While Loop |
| ready |
Spread Operator |
| ready |
Slice With Begin |
| ready |
Slice With Begin and End |
| ready |
For Of Assignment |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.