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

Benchmarks #4

Open
stackotter opened this issue Jan 7, 2022 · 3 comments
Open

Benchmarks #4

stackotter opened this issue Jan 7, 2022 · 3 comments

Comments

@stackotter
Copy link

Hi again,

I'm planning on writing some benchmarks to compare the performance of WebGPU with Metal, and I thought I should check if you already have some before I reimplement anything.

@henrybetts
Copy link
Owner

I haven't done any performance tests - other than a quick glance at cpu usage etc. I think Dawn does have some - but I would imagine they are aimed more at testing the impact of code changes, rather than comparing performance with other frameworks. Might still be worth having a look at.

It would be interesting to know what kind of overhead the swift library is adding on top of Dawn. There are some optimisations that could be made if it is significant enough.

@stackotter
Copy link
Author

Ok, If I get the time I'll have a look into making some comparable benchmarks for Metal, swift-webgpu and Dawn. Are there any features in particular that you think would be useful to have benchmarks for?

@henrybetts
Copy link
Owner

henrybetts commented Jan 11, 2022

I've had a brief look at the dawn performance tests. Might be worth using them as a model to some degree.

https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/testing.md

Looks like there is quite a lot going on at first glance, but I think it might actually be fairly straightforward. There is one test that repeatedly uploads data to a gpu buffer, and another that repeatedly draws a triangle using different configurations (single vertex buffer vs multiple vertex buffers etc.).

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

No branches or pull requests

2 participants