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

Add benchmarks #99

Merged
merged 2 commits into from
Nov 14, 2024
Merged

Add benchmarks #99

merged 2 commits into from
Nov 14, 2024

Conversation

chrisdickinson
Copy link
Contributor

@chrisdickinson chrisdickinson commented Nov 13, 2024

This adds benchmarks for plugin initialization, writing bytes into a plugin (consume), and reflecting input through a host function back to the host (reflect). The benchmarks run on deno, bun, and node.

I've included a wip! commit (to be removed) that allows the benchmarks to run under Deno 2. However, per #95, Deno 2 lacks any WASI support – it breaks the WASI shim we were using under Deno 1. I'm treating that as a separate issue to be addressed in a subsequent PR.

You should be able to run the benchmarks using just bench (or just bench-node/just bench-bun, just bench-deno)

@chrisdickinson chrisdickinson force-pushed the chris/20241112-benches-and-denos branch from 9b03fc5 to d93869f Compare November 14, 2024 23:15
@chrisdickinson chrisdickinson force-pushed the chris/20241112-benches-and-denos branch from d93869f to e2d33ba Compare November 14, 2024 23:15
@chrisdickinson chrisdickinson merged commit e2d33ba into main Nov 14, 2024
5 checks passed
@chrisdickinson chrisdickinson deleted the chris/20241112-benches-and-denos branch November 14, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant