Skip to content

Update performance benchmarks in README.md#1

Open
Ismoh wants to merge 1 commit intoTofaa2:masterfrom
Ismoh:master
Open

Update performance benchmarks in README.md#1
Ismoh wants to merge 1 commit intoTofaa2:masterfrom
Ismoh:master

Conversation

@Ismoh
Copy link
Copy Markdown

@Ismoh Ismoh commented Mar 30, 2026

Summary by CodeRabbit

Release Notes

  • Documentation
    • Updated performance benchmarks with new results for MacBook Pro with Apple M4 Pro processor, providing users with additional reference data for performance expectations across different hardware configurations.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 30, 2026

📝 Walkthrough

Walkthrough

The README "Performance" section was updated to correct formatting on an existing benchmark entry and add comprehensive benchmark results for a MacBook Pro with Apple M4 Pro, including seven distinct performance metrics.

Changes

Cohort / File(s) Summary
Documentation
README.md
Updated "Performance" section with formatting correction (added colon to i7 12700f line) and new MacBook Pro M4 Pro benchmark data across seven operation types.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Benchmarks bloom in rows so neat,
A MacBook's speed, let's hear it beat!
M4 Pro dances through the test,
Performance shines—it knows the best!
hops excitedly 🎉

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: updating performance benchmarks in the README.md file with new data for MacBook Pro and modified i7 entries.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@README.md`:
- Line 30: The fenced benchmark code block in README.md is missing a language
tag causing MD040; update the fence opening from ``` to include a language such
as text (e.g., change the opening fence to ```text) so the block is annotated
and markdown linting passes, leaving the block contents and closing fence
unchanged.
- Line 28: Update the article before "MacBook Pro" in the README by replacing
"an MacBook Pro" with "a MacBook Pro" in the line containing the phrase "Tested
on an MacBook Pro, Apple M4 Pro, 24GB, Tahoe 26.4:" so the sentence reads
"Tested on a MacBook Pro, Apple M4 Pro, 24GB, Tahoe 26.4:".
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c6a4211e-49c2-4598-8299-63390460b4ce

📥 Commits

Reviewing files that changed from the base of the PR and between 77b2c9e and 7a2886d.

📒 Files selected for processing (1)
  • README.md

despawn 1000000 8.620 ms 8 ns/op
```

Tested on an MacBook Pro, Apple M4 Pro, 24GB, Tahoe 26.4:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Fix article usage in the benchmark host description.

Line 28 should use “a MacBook Pro” instead of “an MacBook Pro”.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` at line 28, Update the article before "MacBook Pro" in the README
by replacing "an MacBook Pro" with "a MacBook Pro" in the line containing the
phrase "Tested on an MacBook Pro, Apple M4 Pro, 24GB, Tahoe 26.4:" so the
sentence reads "Tested on a MacBook Pro, Apple M4 Pro, 24GB, Tahoe 26.4:".


Tested on an MacBook Pro, Apple M4 Pro, 24GB, Tahoe 26.4:

```
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Add a language to the fenced code block.

The new benchmark fence is missing a language tag (MD040). Please annotate it (for example, ```text) to satisfy markdown linting.

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/op
</details>

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 markdownlint-cli2 (0.22.0)</summary>

[warning] 30-30: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

<details>
<summary>🤖 Prompt for AI Agents</summary>

Verify each finding against the current code and only fix it if needed.

In @README.md at line 30, The fenced benchmark code block in README.md is
missing a language tag causing MD040; update the fence opening from to include a language such as text (e.g., change the opening fence totext) so
the block is annotated and markdown linting passes, leaving the block contents
and closing fence unchanged.


</details>

<!-- fingerprinting:phantom:triton:hawk:d7f655a0-c605-4abe-be76-09f36c1c4653 -->

<!-- This is an auto-generated comment by CodeRabbit -->

@Tofaa2
Copy link
Copy Markdown
Owner

Tofaa2 commented Mar 30, 2026

These values are extremely high. Please make sure you ran the test in ReleaseFast and not the default debug optimization level.

Something like:

zig build -Doptimize=ReleaseFast performance -- 1000000

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.

2 participants