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
Testing building a string via two methods: string + operator and Array.join. The parts of the string are: - A URL fragment (15 chars) - A question mark (1 char) - A small string (8 chars) - An equals sign (1 char) - Another small string (14 chars) - Another small string (14 chars) - A tiny string (3 chars) - A query string (55 chars)
<script>
var url = '/user/login.php', jsonp = 'callback', id = 'hornet-jsonp-1', data = 'user[email]=my.email%40gmail.com&user[password]=letmein';
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Array.join |
| ready |
String + operator |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.