-
Notifications
You must be signed in to change notification settings - Fork 114
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
benchmarks for Wasm invocations for key value lookup module are too slow #4671
Comments
Unfortunately this didn't work at all; when compiling, I got a long list of this kind of warnings:
and also
|
Though maybe I should try doing that only for the Oak Functions binary. |
Yeah, do it only for the Oak Functions binary. stage0 is special. |
If the performance issue is related to crypto impelementaiton I assume this would be because of x25519, so perhaps also look at https://github.com/dalek-cryptography/curve25519-dalek/tree/main/curve25519-dalek#backends and https://github.com/dalek-cryptography/curve25519-dalek/tree/main/curve25519-dalek#simd-backend |
It turns out that when I changed to building in release mode, I didn't update the paths in tests, so it was still using the debug binaries anyways 🙄 |
oak/oak_functions/examples/key_value_lookup/module/src/tests.rs
Lines 69 to 124 in a91172d
Currently this takes around 10ms, which is way more than expected.
From my investigations, it seems that around 7ms of overhead are caused by the creation of a server encryptor:
oak/oak_crypto/src/encryptor.rs
Lines 259 to 267 in a91172d
I also realised that we may be building the application in dev mode (instead of release).
And @andrisaar suggested:
cc @conradgrobler @ernoc @ipetr0v @pmcgrath17
The text was updated successfully, but these errors were encountered: