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

bench: update spawn benchmarks #3927

Merged
merged 2 commits into from Jul 7, 2021
Merged

bench: update spawn benchmarks #3927

merged 2 commits into from Jul 7, 2021

Conversation

Darksonn
Copy link
Contributor

@Darksonn Darksonn commented Jul 5, 2021

This updates some spawning benchmarks. I'm not sure if these benchmarks are the greatest, but unclear to me how to best benchmark spawning. Could hopefully help benchmark #3909.

Refs: #3904

@Darksonn Darksonn added the A-benches Area: Benchmarks label Jul 5, 2021
})
bench.iter(|| {
runtime.block_on(async {
let mut handles = Vec::with_capacity(10);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably doesn't matter, but I think you can alloc this once and reuse the same vec for each iteration.

@Darksonn Darksonn mentioned this pull request Jul 6, 2021
@Darksonn Darksonn merged commit 51fad06 into master Jul 7, 2021
@Darksonn Darksonn deleted the Darksonn-patch-4 branch July 7, 2021 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-benches Area: Benchmarks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants