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

Nops #77

Merged
merged 3 commits into from
Jan 31, 2025
Merged

Nops #77

merged 3 commits into from
Jan 31, 2025

Conversation

mrjbq7
Copy link
Contributor

@mrjbq7 mrjbq7 commented Jan 31, 2025

Adding a simple nops benchmark.

@Cloudef
Copy link
Owner

Cloudef commented Jan 31, 2025

Maybe this could run the nops for a while and then print averaged nops per s result so it can be run in a benchmark set. Also might want to rename this to coro_nops, I feel like testing nops without coro (aio only) could also be useful.

Also to make the bench buildable, add it to https://github.com/Cloudef/zig-aio/blob/master/build.zig#L156

@mrjbq7
Copy link
Contributor Author

mrjbq7 commented Jan 31, 2025

Okay, see what you think.

I chose 2.5 million nops total because that takes a little while on macos, but is still kinda fast on linux.

@Cloudef Cloudef merged commit 1cbcd34 into Cloudef:master Jan 31, 2025
2 checks passed
@Cloudef
Copy link
Owner

Cloudef commented Jan 31, 2025

Thanks

Cloudef pushed a commit that referenced this pull request Feb 1, 2025
bench: add coro_nops benchmark
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.

2 participants