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
No longer on Doc Ready, no longer wrapped in a complete <html> document.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.min.js"></script>
<script id="example" type="text/x-handlebars-template"><div> {{ exampleText }} </div></script>
var context = { exampleText: 'test' };
(function(){var e=Handlebars.template,t=Handlebars.templates=Handlebars.templates||{};t["example"]=e(function(e,t,n,r,i){this.compilerInfo=[4,">= 1.0.0"];n=this.merge(n,e.helpers);i=i||{};var s="",o,u="function",a=this.escapeExpression;s+="<div> ";if(o=n.exampleText){o=o.call(t,{hash:{},data:i})}else{o=t.exampleText;o=typeof o===u?o.apply(t):o}s+=a(o)+" </div>";return s})})();
Ready to run.
Test | Ops/sec | |
---|---|---|
Normal Compilation |
| ready |
Precomp |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.