-
Notifications
You must be signed in to change notification settings - Fork 25
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
Benchmarking #5
Comments
Hi @limzykenneth, Thanks! I’d definitely be interested in using your benchmark! So far I’ve only tested q5’s performance by running it on my laptop browser and watching the FPS, and I only covered a couple functions that I know are significantly faster — so I think a more comprehensive and professional benchmarking is going to be very helpful for understanding, and potentially fixing and/or improving performance for q5 :) I think maybe we can start with the ones listed in the “Benchmarks” section in the README first? Eventually I think the more that’s covered the better, but I’m not familiar with benchmark.js or Karma yet so I’d like to learn by starting with a small subset. BTW, I too have experimented a bit with the idea of implementing some p5 functions in WebAssembly. I was writing the assembly directly by hand, having implemented |
I still need to solve a few logistical problems first but I'll include benchmarks for q5 once I'm done. p5.wasm is mostly for me to practice Rust with. It tries to be idiomatic Rust and use Rust standard library or simple crates when available. My tests so far shown that performance wise it tends to be slow when native JS functions are available and marginally faster when complex algorithm is required so overall isn't that promising in terms of seeking maximum performance. |
I'm ready to add some q5 functions to the benchmark now, can you share the test code you used for your test so I know I'm testing the right thing? |
Hi @limzykenneth, Great, thanks! I've organized my tests in this glitch demo: https://glitch.com/edit/#!/q5-bench In the project there's a list of The tests cover the items I listed in "Benchmark" section of the repo. All the Please let me know if there're any issues/questions! Thank you very much!! |
The benchmark is now up at https://limzykenneth.github.io/p5-benchmark/. I'm still to add comparison functionality but the benchmark tests are running smoothly now. |
Hi, just want to reach out here about benchmarking the performance of this library against p5.js. I'm currently maintaining a benchmarking repo for p5.js here (it is extracted from the core repo a short while ago and partly rewritten) and would like to hear if you are interested in using it for benchmarking performance.
It is a slow work in progress and I only work on it when I have time left over but I have some plans for it. The setup uses benchmark.js + Karma and runs on headless Firefox and Chrome. To achieve consistency and comparability it is also run on a CI environment before the result is published at https://limzykenneth.github.io/p5-benchmark/
I originally work on it to have something I can benchmark my WebAssembly implementation of some p5.js functions so the ability to benchmark different libraries are already in consideration. If you are interested in being included, let me know so and also which areas/functions you want to be benchmarked against the main library. 😄
The text was updated successfully, but these errors were encountered: