CodSpeedHQ
codspeed-node
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
feat(vitest): call setup and teardown when running suite
#46
Closed
Comparing
cod-1161-support-benchmark-hooks-in-vitest
(
c475504
) with
main
(
6df11e8
)
CodSpeed Performance Gauge
0%
Untouched
86
Benchmarks
Passed
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
fibo 10
examples/with-typescript-esm/src/fibonacci.bench.ts::iterativeFibonacci
CodSpeed Performance Gauge
+1%
15.1 µs
15 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_fibo_10
examples/with-typescript-cjs/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
40.3 µs
40.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
String#indexOf
examples/with-typescript-simple-esm/benchmark-js.ts
CodSpeed Performance Gauge
0%
10.3 µs
10.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_iterative_fibo_10
examples/with-typescript-esm/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
10.8 µs
10.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test sync baz 10
examples/with-typescript-esm/bench/benchmark.js/foobarbaz.bench.ts
CodSpeed Performance Gauge
0%
11.3 µs
11.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test sync baz 100
examples/with-typescript-esm/bench/benchmark.js/foobarbaz.bench.ts
CodSpeed Performance Gauge
0%
12.1 µs
12.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
RegExp#test
examples/with-typescript-simple-esm/benchmark-js.ts
CodSpeed Performance Gauge
0%
12.2 µs
12.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
end
packages/vitest-plugin/benches/hooks.bench.ts::hooks cleanup
CodSpeed Performance Gauge
0%
135.4 µs
135.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
short body
packages/vitest-plugin/benches/parsePr.bench.ts::parsePr
CodSpeed Performance Gauge
0%
133.8 µs
133.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
one
packages/vitest-plugin/benches/hooks.bench.ts
CodSpeed Performance Gauge
0%
337.9 µs
337.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_iterative_fibo_100
examples/with-typescript-esm/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
19.2 µs
19.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
short body
packages/vitest-plugin/benches/flat.bench.ts::parsePr
CodSpeed Performance Gauge
0%
133.7 µs
133.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_cached_fibo_10
examples/with-typescript-esm/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
25.1 µs
25.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
two
packages/vitest-plugin/benches/hooks.bench.ts::hooks cleanup::run
CodSpeed Performance Gauge
0%
128.9 µs
128.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_cached_fibo_20
examples/with-typescript-esm/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
30 µs
30 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_fibo_10
examples/with-typescript-esm/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
34.6 µs
34.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_cached_fibo_30
examples/with-typescript-esm/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
36.2 µs
36.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
short body
packages/vitest-plugin/benches/parsePr.bench.ts::parsePr::nested suite::deeply nested suite
CodSpeed Performance Gauge
0%
100.3 µs
100.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
short body
packages/vitest-plugin/benches/parsePr.bench.ts::another parsePr::nested suite
CodSpeed Performance Gauge
0%
100.2 µs
100.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
long body
packages/vitest-plugin/benches/parsePr.bench.ts::parsePr::nested suite
CodSpeed Performance Gauge
0%
374.3 µs
374.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
seven
packages/vitest-plugin/benches/hooks.bench.ts::level1::level 2::level 3
CodSpeed Performance Gauge
0%
152.8 µs
152.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
short body
packages/tinybench-plugin/benches/sample.ts
CodSpeed Performance Gauge
0%
134.4 µs
134.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
long body
packages/vitest-plugin/benches/parsePr.bench.ts::parsePr
CodSpeed Performance Gauge
0%
375.3 µs
375.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
long body
packages/vitest-plugin/benches/parsePr.bench.ts::another parsePr
CodSpeed Performance Gauge
0%
374.2 µs
374.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_fibo_20
examples/with-typescript-cjs/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_fibo_20
examples/with-typescript-esm/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
RegExp#test
examples/with-javascript-cjs/benchmark-js.js
CodSpeed Performance Gauge
0%
14 µs
14 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
String#indexOf
examples/with-javascript-cjs/benchmark-js.js
CodSpeed Performance Gauge
0%
10.3 µs
10.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
switch 1
examples/with-javascript-cjs/tinybench.js
CodSpeed Performance Gauge
0%
11.9 µs
11.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
switch 2
examples/with-javascript-cjs/tinybench.js
CodSpeed Performance Gauge
0%
12.3 µs
12.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
switch 1
packages/tinybench-plugin/benches/sample.ts
CodSpeed Performance Gauge
0%
11.8 µs
11.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
switch 2
packages/tinybench-plugin/benches/sample.ts
CodSpeed Performance Gauge
0%
12.3 µs
12.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test sync baz 100
examples/with-typescript-cjs/bench/tinybench/foobarbaz.bench.ts
CodSpeed Performance Gauge
0%
17.7 µs
17.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test sync baz 10
examples/with-typescript-cjs/bench/tinybench/foobarbaz.bench.ts
CodSpeed Performance Gauge
0%
16.1 µs
16.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_fibo_20
examples/with-typescript-esm/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_fibo_20
examples/with-typescript-cjs/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
fibo 15
packages/vitest-plugin/benches/flat.bench.ts::fibo
CodSpeed Performance Gauge
0%
285 µs
285 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
long body
packages/tinybench-plugin/benches/sample.ts
CodSpeed Performance Gauge
0%
415.9 µs
416 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
short body
packages/vitest-plugin/benches/parsePr.bench.ts::another parsePr
CodSpeed Performance Gauge
0%
100.2 µs
100.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
one
packages/vitest-plugin/benches/hooks.bench.ts::hooks cleanup::run
CodSpeed Performance Gauge
0%
119.8 µs
119.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
long body
packages/benchmark.js-plugin/benches/sample.ts
CodSpeed Performance Gauge
0%
331.2 µs
331.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
short body
packages/vitest-plugin/benches/parsePr.bench.ts::parsePr::nested suite
CodSpeed Performance Gauge
0%
100.2 µs
100.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
five
packages/vitest-plugin/benches/hooks.bench.ts::level1::level 2
CodSpeed Performance Gauge
0%
156.2 µs
156.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
long body
packages/vitest-plugin/benches/flat.bench.ts::parsePr
CodSpeed Performance Gauge
0%
375.3 µs
375.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
three
packages/vitest-plugin/benches/hooks.bench.ts::level1
CodSpeed Performance Gauge
0%
153.2 µs
153.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
one
packages/vitest-plugin/benches/hooks.bench.ts::level1::level 2 bench nested beforeAll
CodSpeed Performance Gauge
0%
145.7 µs
145.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
short body
packages/benchmark.js-plugin/benches/sample.ts
CodSpeed Performance Gauge
0%
101.7 µs
101.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_cached_fibo_30
examples/with-typescript-esm/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
41.8 µs
41.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_fibo_10
examples/with-typescript-esm/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
40.4 µs
40.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_cached_fibo_20
examples/with-typescript-esm/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
35.6 µs
35.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_cached_fibo_10
examples/with-typescript-esm/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
30.6 µs
30.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
short body 5
packages/benchmark.js-plugin/benches/sample.ts
CodSpeed Performance Gauge
0%
59.3 µs
59.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
short body 2
packages/benchmark.js-plugin/benches/sample.ts
CodSpeed Performance Gauge
0%
59.4 µs
59.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
short body 4
packages/benchmark.js-plugin/benches/sample.ts
CodSpeed Performance Gauge
0%
59.3 µs
59.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
short body 3
packages/benchmark.js-plugin/benches/sample.ts
CodSpeed Performance Gauge
0%
59.3 µs
59.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
two
packages/vitest-plugin/benches/hooks.bench.ts::level1
CodSpeed Performance Gauge
0%
136.6 µs
136.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_iterative_fibo_100
examples/with-typescript-cjs/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
24.8 µs
24.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_iterative_fibo_100
examples/with-typescript-esm/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
24.7 µs
24.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test sync baz 100
examples/with-typescript-esm/bench/tinybench/foobarbaz.bench.ts
CodSpeed Performance Gauge
0%
22.8 µs
22.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_cached_fibo_30
examples/with-typescript-cjs/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
41.7 µs
41.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_cached_fibo_20
examples/with-typescript-cjs/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
35.7 µs
35.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test sync baz 10
examples/with-typescript-esm/bench/tinybench/foobarbaz.bench.ts
CodSpeed Performance Gauge
0%
17 µs
17 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_iterative_fibo_10
examples/with-typescript-cjs/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
16.5 µs
16.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_iterative_fibo_10
examples/with-typescript-esm/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
16.5 µs
16.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_cached_fibo_10
examples/with-typescript-cjs/bench/tinybench/fibo.bench.ts
CodSpeed Performance Gauge
0%
30.6 µs
30.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
switch 2
examples/with-javascript-esm/tinybench.js
CodSpeed Performance Gauge
0%
12.4 µs
12.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
switch 2
examples/with-typescript-simple-cjs/tinybench.ts
CodSpeed Performance Gauge
0%
12.2 µs
12.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
switch 2
examples/with-typescript-simple-esm/tinybench.ts
CodSpeed Performance Gauge
0%
12.2 µs
12.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
fibo 10
packages/vitest-plugin/benches/flat.bench.ts::fibo
CodSpeed Performance Gauge
0%
37 µs
37.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_cached_fibo_30
examples/with-typescript-cjs/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
36.3 µs
36.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
switch 1
examples/with-javascript-esm/tinybench.js
CodSpeed Performance Gauge
0%
11.9 µs
11.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
switch 1
examples/with-typescript-simple-esm/tinybench.ts
CodSpeed Performance Gauge
0%
11.7 µs
11.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
switch 1
examples/with-typescript-simple-cjs/tinybench.ts
CodSpeed Performance Gauge
0%
11.7 µs
11.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_cached_fibo_20
examples/with-typescript-cjs/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
30.1 µs
30.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_cached_fibo_10
examples/with-typescript-cjs/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
25.2 µs
25.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_fibo_10
examples/with-typescript-cjs/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
21.5 µs
21.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
RegExp#test
examples/with-javascript-esm/benchmark-js.js
CodSpeed Performance Gauge
0%
14.2 µs
14.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_iterative_fibo_100
examples/with-typescript-cjs/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
0%
19.3 µs
19.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
RegExp#test
packages/benchmark.js-plugin/benches/sample.ts
CodSpeed Performance Gauge
0%
12.3 µs
12.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
RegExp#test
examples/with-typescript-simple-cjs/benchmark-js.ts
CodSpeed Performance Gauge
0%
12.1 µs
12.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
String#indexOf
examples/with-javascript-esm/benchmark-js.js
CodSpeed Performance Gauge
-1%
10.3 µs
10.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test sync baz 100
examples/with-typescript-cjs/bench/benchmark.js/foobarbaz.bench.ts
CodSpeed Performance Gauge
-1%
12.9 µs
13 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test sync baz 10
examples/with-typescript-cjs/bench/benchmark.js/foobarbaz.bench.ts
CodSpeed Performance Gauge
-1%
11.4 µs
11.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_iterative_fibo_10
examples/with-typescript-cjs/bench/benchmark.js/fibo.bench.ts
CodSpeed Performance Gauge
-1%
11 µs
11 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
String#indexOf
packages/benchmark.js-plugin/benches/sample.ts
CodSpeed Performance Gauge
-1%
10.3 µs
10.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
String#indexOf
examples/with-typescript-simple-cjs/benchmark-js.ts
CodSpeed Performance Gauge
-1%
10.3 µs
10.3 µs
Commits
Click on a commit to change the comparison range
Base
main
6df11e8
-0.09%
feat(vitest): call setup and teardown when running suite
c475504
6 months ago
by GuillaumeLagrange
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs