-
Notifications
You must be signed in to change notification settings - Fork 6
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
Older version (2020.6.4) of PSPDFKIT served by the benchmark? #38
Comments
Note: I have also tried to run the benchmark locally but even with older versions than the most recent one it fails at the 3rd step (
|
Hello Matthias. It's great to see that the benchmark is proving useful for validating performance improvements in V8. What you're observing here is surprising to me as we intentionally left a the benchmark on 2020.6.4 to have results be as comparable as possible between test runs. We mistakenly updated the version once during a release in 2021, but that change was quickly reverted and according to our git history there were no other explicit updates done from our side. I'll take a look internally to see if I can find out more. That being said, while we do believe that constantly updating our WASM version would result in a less useful benchmark overall, I do acknowledge that the used version is now very outdated. We're considering doing a one time update and releasing what would essentially be a v2 of the benchmark with our latest release and WASM binary. With that we can also check out and see what's going on with that error you encountered. Would this work for you and if so, what kind of timeline are you operating under for your performance improvements? |
Thanks, I'd be certainly interested in case you find something out.
That would be amazing. If I could fully run the benchmark locally, that would already be great. |
We went ahead and updated the benchmark. We already pushed the changes to this repository and https://pspdfkit.com/webassembly-benchmark/ should reflect the changes soon as well. You'll see a new footer that will indicate that PSPDFKit for Web 2024.1.0 is being used. I hope this helps. I'd love it if you could tell us what kind of improvements you're seeing with this new deployment. |
Thanks a lot! (I realized, I didn't reply here, yet.) For the old module we see a 5-10% performance improvement depending on architecture.
So there are huge improvements on the "smaller" parts of the benchmarks and only a small improvement on rendering. |
Thank you for the update. I'm going to close the ticket, but please don't hesitate to chime back in if you need anything else of if you might have other results to share in the future. |
I'm investigating a potential improvement to the WebAssembly performance in V8 / Chrome with inlining support in V8's optimizing JIT compiler for wasm.
I had run https://pspdfkit.com/webassembly-benchmark/ and the wasm binary served seems to have changed in the recent days:
Previously (10 day sago) I was getting
pspdfkit-ffc054f2e674b6fc.wasm
(13MiB), now it usespspdfkit-85b702f2ed274c68.wasm
(9.7MiB).Looking at the current accompanying
.wasm.js
file, this is version2020.6.4
and I can find the same wasm binary in that npm package version.Looking at more recent binaries' sizes, it seems that my the
ffc0[...].wasm
binary should be a fairly recent version.Did something change in the benchmark that causes it to use an old(er) version now?
Is the expectation that the benchmark would serve new versions to benefit from improvements on the PSPDFKIT code or is the version meant to be fixed?
To provide more context:
We have seen a significant improvement on the PSPDFKIT benchmark (~10%) when enabling inlining (a feature that is currently only enabled for wasm-gc modules).
We plan on enabling it for linear-memory wasm (like pspdfkit) but have seen some significant compile time regressions.
I'm preparing a change to use better inlining heuristics to get the performance improvements while not regressing too much on compile time.
The characteristics for PSPDFKIT now changed "overnight", the benchmark seems to be slightly slower overall and the performance benefits of enabling inlining are significantly reduced (to ~5%).
The text was updated successfully, but these errors were encountered: