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 KaTeX vs MathJax (v38) Revision 38 of this benchmark created by Sam on May 21, 2015 Preparation HTML <link href ="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.2.0/katex.min.css" rel ="stylesheet" type ="text/css" >
<script src ="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.2.0/katex.min.js" > </script >
<script src ="https://cdn.mathjax.org/mathjax/latest/MathJax.js?delayStartupUntil=configured" > </script >
<script >
MathJax .Hub .Config ({
jax : ["input/TeX" , "output/HTML-CSS" ],
extensions : [],
Te X : {
extensions : ["AMSmath.js" , "AMSsymbols.js" , "noErrors.js" , "noUndefined.js" ]
},
"HTML-CSS" : {
showMathMenu : false ,
},
messageStyle : "none"
});
MathJax .Hub .Configured ();
</script >
<div id ="math" > </div >

Setup var math = document .getElementById ("math" );
var formula = "\\dfrac{-b \\pm \\sqrt{b^2 - 4ac}}{2a} S( q) = \int_a^b L(t, q(t), q'(t))\, {d}t" ;

Teardown ```
math.
```innerHTML = "" ;

Test runner Ready to run.

Run Quick Run Testing in Test Ops/sec KaTeX ```
katex.
```render (formula, math);
math.outerWidth ;
deferred.resolve ();

ready

MathJax ```
math.
```innerHTML = "<script type='math/tex'>" + formula + "</script>" ;
MathJax .Hub .Queue (["Process" , MathJax .Hub , math]);
MathJax .Hub .Queue (function ( ) {
math.outerWidth ;
deferred.resolve ();
});

ready

Revisions You can edit these tests or add more tests to this page by appending /edit to the URL.

Revision 1 : published by Xymostech on September 5, 2014 Revision 2 : published by Xymostech on September 6, 2014 Revision 9 : published by Eric on September 16, 2014 Revision 15 : published on September 18, 2014 Revision 26 : published on December 16, 2014 Revision 27 : published on December 16, 2014 Revision 28 : published on December 19, 2014 Revision 33 : published on February 12, 2015 Revision 34 : published by xymostech on February 21, 2015 Revision 37 : published on May 10, 2015 Revision 38 : published by Sam on May 21, 2015 Revision 40 : published on June 16, 2015 Revision 42 : published by xymostech on September 2, 2015 Revision 43 : published on September 3, 2015 Revision 47 : published on April 4, 2019 Revision 52 : published on March 23, 2017