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>
window.constantSymbol = Symbol("asd");
window.variableSymbol = Symbol("asd");
function blind() {
/*you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
you cannot know what this function does
*/
}
function Obj() {
this.field = 3;
this[constantSymbol] = 3;
this[variableSymbol] = 3;
}
var theObject = new Obj();
</script>
var symbol = variableSymbol;
var theValue = 3;
(function() {
theValue; symbol;
});
Ready to run.
Test | Ops/sec | |
---|---|---|
field |
| ready |
constant-symbol |
| ready |
closure-symbol |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.