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
What is faster? Comparing a number or comparing a string?
<script>
var a1 = '21EC2020-3AEA-1069-A2DD-08002B30309D',
a2 = '21EC2020-3AEA-1069-A2DD-08002B30309A',
a3 = '21EC2020-3AEA-1069-A2DD-08002B30309D';
var b1 = 123244343.2343556,
b2 = 566435.21344564,
b3 = 123244343.2343556;
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
String |
| ready |
Number |
| ready |
String === |
| ready |
Number === |
| ready |
String (equal) |
| ready |
Number (equal) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.