-
Notifications
You must be signed in to change notification settings - Fork 353
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 degradation #120
Comments
@nidi3 I'm interested to see if d3-graphviz add a measurable performance penalty to viz.js. Would it be possible for you to share your benchmark code? |
öm, d3-graphviz has nothing to do with it. |
@nidi3 I know. I just wanted to use the same benchmarks. Thanks. |
Ah, I see. Would be interesting to see if you can confirm/reject my measurements. |
Since v1.5.0, a new Emscripten module instance is created for every call to |
Thanks for the answer. As I said, it's not a problem for me, but any speed improvement will surely be appreciated. |
We should also include the wasm builds in the performance comparisons. |
Version 2.0.0 brought a HUGE improvement:
really great work! |
Great! The improvement in the average run time is likely due to reusing the Emscripten module instance between calls. In 2.0 you can create a new instance if necessary, so I decided it was OK to reuse it. See the Caveats wiki page for an example. |
Saw it and using it like you suggest 👍 |
Not really a bug, but performance got measurable worse with versions 1.5.0 and 1.8.1:
Tests are run on a V8 engine using J2V8.
Numbers are milliseconds averaged over many runs.
Do you have any idea what could be the cause of this?
The text was updated successfully, but these errors were encountered: