File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
packages/tinybench-plugin Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "creator" : {
3
+ "name" : " @codspeed/tinybench-plugin" ,
4
+ "version" : " 4.0.1" ,
5
+ "pid" : 1122157
6
+ },
7
+ "instrument" : {
8
+ "type" : " walltime" ,
9
+ "clock_info" : {
10
+ "implementation" : " perf_counter" ,
11
+ "monotonic" : true ,
12
+ "adjustable" : false ,
13
+ "resolution" : 1e-9
14
+ }
15
+ },
16
+ "benchmarks" : [
17
+ {
18
+ "name" : " RegExp" ,
19
+ "uri" : " packages/tinybench-plugin/tests/index.integ.test.ts::RegExp" ,
20
+ "config" : {
21
+ "warmup_time_ns" : 1000000000 ,
22
+ "min_round_time_ns" : 1000000 ,
23
+ "max_time_ns" : 3000000000 ,
24
+ "max_rounds" : null
25
+ },
26
+ "stats" : {
27
+ "min_ns" : 114.99226093292236 ,
28
+ "max_ns" : 351940.98949432373 ,
29
+ "mean_ns" : 160.73891516279846 ,
30
+ "stdev_ns" : 755.441384793204 ,
31
+ "q1_ns" : 137.99965381622314 ,
32
+ "median_ns" : 143.00644397735596 ,
33
+ "q3_ns" : 148.01323413848877 ,
34
+ "total_time" : 0.10000001907348632 ,
35
+ "iter_per_round" : 622127 ,
36
+ "rounds" : 1 ,
37
+ "iqr_outlier_rounds" : 62592 ,
38
+ "stdev_outlier_rounds" : 609 ,
39
+ "warmup_iters" : 0
40
+ }
41
+ }
42
+ ]
43
+ }
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { registerBenchmarks } from "./registerBenchmarks";
5
5
import { registerOtherBenchmarks } from "./registerOtherBenchmarks" ;
6
6
7
7
const mockCore = vi . hoisted ( ( ) => {
8
+ process . env . CODSPEED_RUNNER_MODE = "instrumentation" ;
8
9
return {
9
10
mongoMeasurement : {
10
11
start : vi . fn ( ) ,
You can’t perform that action at this time.
0 commit comments