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
<script>
var array = ['0lk_L0QO', '0vYSq6xM', '1ls4nM7L', '1qj_8rrQ', '2C67PsOu', '2NiUlVac', '2plgJg3r', '51B-ygro', '-53hQBz1', '5P0QHhYg', '6fXFqzWX', '6LfWIgl5', '-7edgxBP', '7UN_5LKk', '82Qz7DWG', '8G1vaBGA', 'a_iJH68d', 'aTbVrSCC', 'aw5P5pKd', 'BUTkHAiY', 'Bzo4WZpQ', 'C7skxd21', 'CHBvHvGi', 'ci9xoQVv', 'cIG1teKe', 'cw4yATZd', 'cWHHpglR', 'cxvOtN0T', 'dzrrJ_XL', 'FpdM85CO', 'FQY-o8p7', 'fSIB3zj4', 'GNWf0dk1', 'griYaZF2', 'GTGxSIGB', 'GYaN9XSb', 'HM_lk2jT', 'hx_yDU3v', 'hz3aCBQ3', 'i5sye6C-', 'iPULy29C', 'iuB8VdYM', 'J1agRCLj', 'jaz5clGt', 'KGf6h9a8', 'KqJVyHo3', 'lm0Duj0N', 'LsQlHG0Y', 'Lwx-TN1a', 'M2UpornZ', 'Mlxy6XJD', 'mUA-a4mX', 'N4Ahjfyr', 'n5rpWkX-', 'oGM9GYT8', 'oGxNkEl4', 'OIb94i_m', 'p3qphCaz', 'PLXhvxI3', 'pOHhvx-y', 'PqR-GgEf', 'Q8BWiO2d', 'qavwnovV', 'qIGXZ4LW', 'R2HzTgQp', 'R3soNlRC', 'rfNmNz_g', 'rfXQrPO9', 'SnhlUDX5', 'sXHT-Qgx', 't2UYGhhp', 'TDv1cTFW', 'TGI9ZZkp', 'tKXXJZfJ', 'tLJnkZm1', 'U7ROa6hf', 'uC5p9IGN', 'U-LTS0mX', 'uN8e9fl_', 'unrhUlvc', 'v20_46G-', 'w1lBWdVw', 'xNFxLPKE', 'Y6-9Ic-C', 'Z7wKHsy_', 'ZJBw3ich', 'ZqxgDRx4'],
needle = 'rfNmNz_g',
unknown_needle = 'foo';
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Iterate and compare |
| ready |
Join and indexOf |
| ready |
improved iterate and compare |
| ready |
iterate and return |
| ready |
iterate and return 1 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.