Skip to content

benchmarks: add atomic one-shot builtin batch - #1075

Merged
emil14 merged 3 commits into
mainfrom
codex/runtime-bench-atomic-builtins
Mar 31, 2026
Merged

benchmarks: add atomic one-shot builtin batch#1075
emil14 merged 3 commits into
mainfrom
codex/runtime-bench-atomic-builtins

Conversation

@emil14

@emil14 emil14 commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR is the next slice after #1073 and adds the first truly atomic builtin runtime benchmarks.

Included

  • benchmarks/atomic/builtin_pass
  • benchmarks/atomic/builtin_lock

Both benchmarks use a single :start event and keep the measured builtin on the hot path without streams.Range, streams.Wait, or sync.WaitGroup in the measured flow.

Notes

  • The previous fan_in and fan_out drafts were intentionally removed from this PR.
  • Those components need additional support wiring to produce a valid standalone benchmark, and that methodology should be reviewed separately instead of being mixed into the first atomic batch.

Validation

  • go test ./benchmarks -run=^$ -bench BenchmarkRuntimeE2E -benchtime=1x -count=1
  • go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.5.0 run ./benchmarks

@emil14 emil14 changed the title benchmarks: add atomic builtin baseline batch benchmarks: add atomic one-shot builtin batch Mar 31, 2026
@emil14
emil14 merged commit 112ef93 into main Mar 31, 2026
6 of 7 checks passed
@emil14
emil14 deleted the codex/runtime-bench-atomic-builtins branch March 31, 2026 07:22
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.

1 participant