Poor performance of wasm binary execution over remote REST api call of OPA server. #440
Unanswered
rai-prashanna
asked this question in
Wasm
Replies: 1 comment 2 replies
-
Wasm performance depends on the runtime that's used, too. And if that runtime is using the 1.2 ABI or not. You could try to figure that out, I suppose. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I notice that when experimenting with wasm binary, evaluation of input against wasm binary was very poor in comparison to the remote call of REST API of OPA server.
I experimented with wasm binary, JARL library, OPA rest API server.
I created bundle with optimization flag=1 i.e o=1 and run as server.
Both plan.json and wasm files are located locally
Despite OPA being run as a REST API server in a separate container with an overhead of sending and processing requests/responses.
The green line is used for OPA rest,
The violent line is used for WASM,
The purple line is used fro JARL.
My policy can be found in this link.
https://play.openpolicyagent.org/p/W7dh9TIqMi
https://play.openpolicyagent.org/p/LYgbgZj0Qg
My link to the repo of testing
https://github.com/rai-prashanna/performanceTesting
The performance of the wasm doesn't match with the details mentioned in this document.
https://www.openpolicyagent.org/docs/latest/integration/
Beta Was this translation helpful? Give feedback.
All reactions