Skip to content
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 JavaScript or WebAssembly code #29

Open
p-j-l opened this issue Dec 12, 2023 · 0 comments
Open

Benchmarking JavaScript or WebAssembly code #29

p-j-l opened this issue Dec 12, 2023 · 0 comments
Labels

Comments

@p-j-l
Copy link
Contributor

p-j-l commented Dec 12, 2023

The Bidding/Auction and Key/Value Servers use the same underlying library to execute User Defined Functions (i.e. code that's loaded at runtime) in JavaScript or WebAssembly. The library for this is called ROMA and it's Open Source here: https://github.com/privacysandbox/data-plane-shared-libraries

I'd like to set up some microbenchmarks that will test out how fast it is to load and execute code inside ROMA. Would anyone be comfortable having their code run in this fashion? This is very much optional!

The tradeoffs are:

  • Your code would have to be public and copied into the repo linked above. I'm hoping this isn't too big a deal given that code that runs on-device is already effectively public but you won't want to put anything confidential in there.
  • It'll get tested on a regular (multiple times a day) basis and we'll be tracking performance over time so this is a way to help make sure that library changes don't impact your code's performance.

[Editing to add: if there are particular inputs to the code that you'd like it to be benchmarked with then those would be helpful too. Hat tip @dankocoj-google.]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants