Skip to content

Add benchmark infrastructure#17

Merged
hayabusa-cloud merged 7 commits intomainfrom
makefile
Feb 5, 2026
Merged

Add benchmark infrastructure#17
hayabusa-cloud merged 7 commits intomainfrom
makefile

Conversation

@hayabusa-cloud
Copy link
Copy Markdown
Owner

@hayabusa-cloud hayabusa-cloud commented Feb 5, 2026

Summary

  • Add Makefile targets for running benchmarks (bench, bench-cpu, bench-mem)
  • Add comprehensive benchmark suite covering Backoff, semantic helpers, CopyPolicy, and TeeReader/TeeWriter

Test plan

  • make bench runs all benchmarks
  • make bench-cpu generates cpu.out profile
  • make bench-mem generates mem.out profile

Copilot AI review requested due to automatic review settings February 5, 2026 02:43
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds comprehensive benchmark infrastructure to the iox library, including Makefile targets for running benchmarks and a suite of benchmarks covering core functionality.

Changes:

  • Added Makefile with targets for running benchmarks (bench, bench-cpu, bench-mem), tests, and other development tasks
  • Added benchmarks for Backoff operations (Duration, Block, Reset, SetBase, SetMax)
  • Added benchmarks for semantic error helpers (IsSemantic, IsNonFailure, IsProgress, IsWouldBlock, IsMore)
  • Added benchmarks for CopyPolicy with different policy types
  • Added comparison benchmarks between iox.Copy and io.Copy
  • Added benchmarks for chained TeeReader and TeeWriter operations
  • Added benchmarks for deeply wrapped error classification

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
Makefile New file with development targets including test, bench, bench-cpu, bench-mem, vet, clean, and help
bench_test.go Added comprehensive benchmark suite covering Backoff, semantic helpers, CopyPolicy, Copy comparison, TeeReader/TeeWriter chaining, and deep error wrapping

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 5, 2026 02:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 5, 2026

@hayabusa-cloud I've opened a new pull request, #18, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits February 5, 2026 03:01
Co-authored-by: hayabusa-cloud <81066232+hayabusa-cloud@users.noreply.github.com>
Fix bench-cpu and bench-mem targets: revert to single package
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@hayabusa-cloud hayabusa-cloud merged commit 1bf86da into main Feb 5, 2026
11 checks passed
@hayabusa-cloud hayabusa-cloud deleted the makefile branch February 5, 2026 03:13
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.

3 participants