Skip to content

Commit c4b2aa5

Browse files
feat!: update tinybench to v4
1 parent f474bcf commit c4b2aa5

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ bench.add(Function)
6565
bench.add(Function)
6666
bench.add(Function)
6767

68-
await bench.warmup()
6968
await bench.run()
7069
```
7170

fixtures/createBench.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type Bench from 'tinybench'
1+
import type { Bench } from 'tinybench'
22
import { createTask } from './createTask.js'
33
import type { TaskOptions } from './types.js'
44

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"test": "tsx --test"
6060
},
6161
"peerDependencies": {
62-
"tinybench": "^2.8.0"
62+
"tinybench": "^4.0.0"
6363
},
6464
"dependencies": {
6565
"@monstermann/tables": "^0.0.0",
@@ -70,7 +70,7 @@
7070
"@sindresorhus/tsconfig": "^5.0.0",
7171
"@types/node": "^20.12.11",
7272
"eslint": "^9.1.1",
73-
"tinybench": "^2.8.0",
73+
"tinybench": "^4.0.0",
7474
"tsup": "^8.0.2",
7575
"tsx": "^4.11.0",
7676
"typescript": "^5.4.5"

pnpm-lock.yaml

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tinybenchPrinter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Borders, CreateCliTableConfig, Style } from '@monstermann/tables'
22
import { cli, markdown } from '@monstermann/tables'
3-
import type Bench from 'tinybench'
3+
import type { Bench } from 'tinybench'
44
import type { Column, Columns, DefaultColumn, MarginOptions, NameOptions, OpsOptions, SamplesOptions, SortMethod, SummaryOptions, TaskWithResult, TimeOptions } from './types.js'
55
import { name } from './columns/name.js'
66
import { summary } from './columns/summary.js'

test/rendering.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import test, { describe } from 'node:test'
22
import process from 'node:process'
33
import assert from 'node:assert'
4-
import type Bench from 'tinybench'
4+
import type { Bench } from 'tinybench'
55
import type { Column } from '../src/index.js'
66
import { tinybenchPrinter } from '../src/index.js'
77
import { createFailedTask, createInvalidTask, createTask } from '../fixtures/createTask.js'

0 commit comments

Comments
 (0)