Skip to content

Basic event benchmarks#8251

Merged
james7132 merged 4 commits intobevyengine:mainfrom
james7132:event-benchmarks
Mar 31, 2023
Merged

Basic event benchmarks#8251
james7132 merged 4 commits intobevyengine:mainfrom
james7132:event-benchmarks

Conversation

@james7132
Copy link
Member

Objective

Fix #7731. Add basic Event sending and iteration benchmarks to bevy_ecs's benchmark suite.

Solution

Add said benchmarks scaling from 100 to 50,000 events.

Not sure if I want to include a randomization of the events going in, the current implementation might be too easy for the compiler to optimize.

@james7132 james7132 added A-ECS Entities, components, systems, and events C-Performance A change motivated by improving speed, memory usage or compile times A-Diagnostics Logging, crash handling, error reporting and performance analysis labels Mar 29, 2023
@james7132 james7132 requested review from danchia and joseph-gio March 29, 2023 20:38
Copy link
Contributor

@danchia danchia left a comment

Choose a reason for hiding this comment

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

I am not a criterion expert but this looks good to me. had a small suggestion.

Copy link
Member

@joseph-gio joseph-gio left a comment

Choose a reason for hiding this comment

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

LGTM, got a couple of suggestions.

@james7132 james7132 added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Mar 30, 2023
james7132 and others added 2 commits March 30, 2023 11:07
Co-authored-by: JoJoJet <21144246+JoJoJet@users.noreply.github.com>
@mockersf
Copy link
Member

would it be interesting to have benches for events of other size?

@james7132
Copy link
Member Author

Split the benchmarks to support events of size 4, 16, and 512 bytes.

@james7132 james7132 requested a review from mockersf March 31, 2023 06:59
@james7132 james7132 enabled auto-merge March 31, 2023 07:09
@james7132 james7132 added this pull request to the merge queue Mar 31, 2023
Merged via the queue into bevyengine:main with commit 8e82c88 Mar 31, 2023
@james7132 james7132 deleted the event-benchmarks branch September 13, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Diagnostics Logging, crash handling, error reporting and performance analysis A-ECS Entities, components, systems, and events C-Performance A change motivated by improving speed, memory usage or compile times S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Event microbenchmarks

4 participants