Skip to content

feat: add warmup option to benchmark#56

Merged
ChALkeR merged 4 commits intomainfrom
copilot/add-warmup-option-to-benchmark
Feb 17, 2026
Merged

feat: add warmup option to benchmark#56
ChALkeR merged 4 commits intomainfrom
copilot/add-warmup-option-to-benchmark

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

  • Add warmup option to BenchmarkOptions interface in benchmark.d.ts
  • Implement warmup logic in benchmark.js to call f() N times before the run
  • Create tests to validate the warmup functionality
  • Run tests to ensure changes work correctly
  • Verify linting passes (formatting applied only to relevant files)
  • Request code review (no issues found in implementation)
  • Run security checks (no vulnerabilities found)
  • Reverted unrelated formatting changes

Summary

Successfully implemented the warmup option for the benchmark function. The feature allows users to specify how many times to call the benchmarked function before the actual benchmark run, using the same data/arguments.

Key Features:

  • Integer warmup option with default value of 0
  • Works with both sync and async functions
  • Supports args cycling (same as benchmark loop)
  • Fully tested with 5 comprehensive test cases
  • No breaking changes to existing API
  • Zero security vulnerabilities
Original prompt

This section details on the original issue you should resolve

<issue_title>add warmup option to benchmark</issue_title>
<issue_description>Should be an integer of how much times to call f() before the run, on the same data</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 17, 2026 13:34
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
Copilot AI changed the title [WIP] Add warmup option to benchmark function Add warmup option to benchmark Feb 17, 2026
Copilot AI requested a review from ChALkeR February 17, 2026 13:38
@ChALkeR ChALkeR changed the title Add warmup option to benchmark feat: add warmup option to benchmark Feb 17, 2026
@ChALkeR ChALkeR marked this pull request as ready for review February 17, 2026 13:39
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
Copilot AI requested a review from ChALkeR February 17, 2026 13:43
@ChALkeR ChALkeR merged commit 00aaa98 into main Feb 17, 2026
44 checks passed
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.

add warmup option to benchmark

2 participants

Comments