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
I noticed subtle changes in the way the file is minified could affect the performance of Safari.
In this case, the "slow" version has typeof
checks done like:
"number" == typeof x
and the "fast" version has typeof
checks done like:
typeof x == "number"
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.0-rc.3/lodash.js"></script>
<script>
var dev = _.noConflict();
</script>
<script src="//dl.dropbox.com/u/513327/lodash.min.fast.js"></script>
<script>
var fast = _.noConflict();
</script>
<script src="//dl.dropbox.com/u/513327/lodash.min.slow.js"></script>
<script>
var slow = _.noConflict();
</script>
var dev = window.dev;
var fast = window.fast;
var slow = window.slow;
var numbers = Array(100);
for (var index = 0; index < 100; index++) {
numbers[index] = index;
}
Ready to run.
Test | Ops/sec | |
---|---|---|
dev |
| ready |
fast |
| ready |
slow |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.