New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speed test doesn't work #420
Comments
Just bumped into this as well. The problem is this code in the speed test: <link href="http://xymostech.com/katex/katex.min.css" rel="stylesheet" type="text/css">
<link href="http://xymostech.com/katex/fonts/fonts.css" rel="stylesheet" type="text/css">
<script src="http://xymostech.com/katex/katex.min.js"></script> It would work if it could be changed to: <link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.css" rel="stylesheet" type="text/css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/fonts.css" rel="stylesheet" type="text/css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.js"></script> |
Looks like someone made the proposed changes in https://jsperf.com/katex-vs-mathjax/47. It's still not working, but it looks like an unrelated issue in the setup code. |
Perhaps this link could be removed from the README until it's working - I just ran into this as well (also giving a "ReferenceError: katex is not defined" as well as the MathJax error). |
<shamelessplug> |
@mbourne would you be okay with us pointing to your speed comparison in the README? |
@mbourne Great examples! (And wow, what a speedup -- I get 25x on desktop and 50x on mobile.) Helpful also to have the bad examples. I tried the cross product example and, while it indeed looks bad in KaTeX and good in MathJax, it actually looks the same as KaTeX in PDFLaTeX. (See also #594.) Another solution would be to change the On the other hand, Maxwell's Equation looks much better in LaTeX than KaTeX, so that's a bug (#531).
|
Maxwell's Equations look fine with extra vertical spacing eg using \\ \\. See IntMath Samples option at http://sixthform.info/katex/examples/demo.html |
@kevinbarabash: Feel free to include it in the README. @edemaine: Thanks for your kind comments. |
I just tried the online version http://jsperf.com/katex-vs-mathjax/ and it fails. I'm a newbie, but this looks bad for your project when your own test can't complete! Testing in Chrome 55.0.2883 / Mac OS X 10.11.6 |
Permission to reference page granted in #420 (comment)
Now that we're pointing to http://www.intmath.com/cg5/katex-mathjax-comparison.php in the README maybe we should delete the jsperf test. |
Oh, do you have access to change the jsperf test? I thought we had to make a new one. I think jsperf would be better/good in addition -- it has trustworthy measurement technology. |
I can't get jsperf.com to even load. If it comes back online we can re-open this and try to figure out how to update the perf test. If we're concerned about accuracy of the new katex-mathjax comparison we might look at using https://github.com/bestiejs/benchmark.js (this is what jsperf uses), but the difference in speed right now is at least an order of magnitude so I wouldn't bother. |
It fails with:
The text was updated successfully, but these errors were encountered: