-
Notifications
You must be signed in to change notification settings - Fork 1
Update performance benchmarks in README.md #1
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,8 @@ Prefabs for slime are essentially an id, mask and a set of components. There is | |
|
|
||
| ## Performance | ||
| Take these numbers with a grain of salt just like any performance tests. But for those of you who like numbers i guess here we go. | ||
| Tested on an i7 12700f. | ||
|
|
||
| Tested on an i7 12700f: | ||
|
|
||
| ``` | ||
| benchmark n total_ms ns/entity | ||
|
|
@@ -23,3 +24,18 @@ addComponent V (migrate) 1000000 80.321 ms 80 ns/op | |
| removeComponent V (migrate) 1000000 75.255 ms 75 ns/op | ||
| despawn 1000000 8.620 ms 8 ns/op | ||
| ``` | ||
|
|
||
| Tested on an MacBook Pro, Apple M4 Pro, 24GB, Tahoe 26.4: | ||
|
|
||
| ``` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a language to the fenced code block. The new benchmark fence is missing a language tag ( Proposed fix-```
+```text
benchmark n total_ms ns/entity
----------------------------------------------------------------
spawn P+V 1000000 508.193 ms 508 ns/op
query iterate P+V 1000000 7.234 ms 7 ns/op
chunked + columnSlice P 1000000 2.950 ms 2 ns/op
getMut via query P 1000000 83.676 ms 83 ns/op
spawnPrefab (same prefab) 1000000 555.221 ms 555 ns/op
addComponent V (migrate) 1000000 709.130 ms 709 ns/op
removeComponent V (migrate) 1000000 571.632 ms 571 ns/op
despawn 1000000 85.006 ms 85 ns/opVerify each finding against the current code and only fix it if needed. In |
||
| benchmark n total_ms ns/entity | ||
| ---------------------------------------------------------------- | ||
| spawn P+V 1000000 508.193 ms 508 ns/op | ||
| query iterate P+V 1000000 7.234 ms 7 ns/op | ||
| chunked + columnSlice P 1000000 2.950 ms 2 ns/op | ||
| getMut via query P 1000000 83.676 ms 83 ns/op | ||
| spawnPrefab (same prefab) 1000000 555.221 ms 555 ns/op | ||
| addComponent V (migrate) 1000000 709.130 ms 709 ns/op | ||
| removeComponent V (migrate) 1000000 571.632 ms 571 ns/op | ||
| despawn 1000000 85.006 ms 85 ns/op | ||
| ``` | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix article usage in the benchmark host description.
Line 28 should use “a MacBook Pro” instead of “an MacBook Pro”.
🤖 Prompt for AI Agents