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 short_text = "That is the Impression that I get";
var words = short_text.split(/\s+/);
array = [], obj = {};
var i , length = words.length;
for (i =0; i < length; i++) {
array[words[i]]= (array[words[i]] || 0) + 1;
obj[words[i]] = array[words[i]];
}
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Using in |
| ready |
Has the property |
| ready |
Array as Map |
| ready |
Array as Map !== undefined |
| ready |
Obj is |
| ready |
Obj prop |
| ready |
typeof obj prop |
| ready |
typeof Array as Map |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.