-
Notifications
You must be signed in to change notification settings - Fork 36
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
Performance Benchmarking Tips #173
Comments
I think |
Oh damn! That's what I was using... What's the problem with it? |
Hm it seems like it infers to use UniversalInstant from this: https://github.com/Zaplib/zaplib/pull/166/files#diff-6ab2609914bb3aa54a94aa7d90dc83537e41efed475d85ddbb31ed3e413f5aadR44 I guess since we define and implement an |
Ah, yes! That's quite confusing usage. I suspect if you remove type annotation of |
Oh fascinating! It did error and suggested I add that type annotation, so that's how the code ended up in that state. |
Maybe we link to resources like this https://nnethercote.github.io/perf-book/introduction.html |
We should create a page in the docs to collect tips for benchmarking performance:
parsing - yes (2.5x faster)
matrix math - yes
generating vertex shaders - yes
dom manipulation - no
When in doubt, ask the Slack if the slowness in your app can be improved by Zaplib before you invest time into writing a port!
performance.now
in JS &Instant::now()
in RustThe text was updated successfully, but these errors were encountered: