Skip to content

feat: add print option to benchmark#58

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

feat: add print option to benchmark#58
ChALkeR merged 2 commits intomainfrom
copilot/add-print-option-to-benchmark

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

Adds a print option to control console output from benchmark(). Defaults to true.

Changes:

  • Added print?: boolean to BenchmarkOptions interface (default: true)
  • Conditionally log results based on option value

Usage:

import { benchmark } from '@exodus/test/benchmark'

// Print results (default)
await benchmark('test', { timeout: 1000 }, fn)

// Suppress output
await benchmark('test', { timeout: 1000, print: false }, fn)
Original prompt

This section details on the original issue you should resolve

<issue_title>Add print: true|false option to benchmark</issue_title>
<issue_description>Default true</issue_description>

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


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
Copilot AI changed the title [WIP] Add print option to benchmark with default true Add print option to benchmark Feb 17, 2026
Copilot AI requested a review from ChALkeR February 17, 2026 14:02
@ChALkeR ChALkeR changed the title Add print option to benchmark feat: add print option to benchmark Feb 17, 2026
@ChALkeR ChALkeR marked this pull request as ready for review February 17, 2026 14:09
@ChALkeR ChALkeR merged commit 431aa3b 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 print: true|false option to benchmark

2 participants

Comments