Skip to content

Add Benchmarks#5694

Merged
cwfitzgerald merged 1 commit intogfx-rs:trunkfrom
cwfitzgerald:benchmarks
May 16, 2024
Merged

Add Benchmarks#5694
cwfitzgerald merged 1 commit intogfx-rs:trunkfrom
cwfitzgerald:benchmarks

Conversation

@cwfitzgerald
Copy link
Copy Markdown
Member

@cwfitzgerald cwfitzgerald commented May 12, 2024

Connections

Closes #5443

Description

This is our first useful foray into benchmarking.

Adds benchmarking infrastructure and adds some more labeling within the code to make traces more useful.

image

I will write up some of my findings from this in an issue later.

Testing

Should be compile and run tested by existing infra.

@cwfitzgerald cwfitzgerald requested a review from a team as a code owner May 12, 2024 08:52
@JMS55
Copy link
Copy Markdown
Collaborator

JMS55 commented May 12, 2024

Can I please request some benchmarks?

  1. Making a very large (>500MB, 2GB is the limit iirc) buffer, then making a second, slightly bigger one, and destroying the original. My project allocates a lot of very large buffers, but when I need to grow them I make a bigger one, copyBuffer to transfer the contents, and then destroy the old. I'm very curious how wgpu's memory allocators handle this.
  2. Bind group creation benchmarks (currently we don't cache these between frames).

@cwfitzgerald
Copy link
Copy Markdown
Member Author

  1. Should already be covered by the buffer creation benchmark
  2. Can add that, yeah

@cwfitzgerald cwfitzgerald requested a review from a team May 13, 2024 11:59
@cwfitzgerald cwfitzgerald force-pushed the benchmarks branch 6 times, most recently from 873aebc to 350f926 Compare May 16, 2024 04:09
@cwfitzgerald cwfitzgerald merged commit eeb1a9d into gfx-rs:trunk May 16, 2024
@cwfitzgerald cwfitzgerald deleted the benchmarks branch May 16, 2024 13:05
jimblandy pushed a commit to jimblandy/wgpu that referenced this pull request May 23, 2024
@Wumpf Wumpf mentioned this pull request Jun 2, 2024
6 tasks
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.

wgpu needs benchmarks

3 participants