Commit 6244f3f 1 parent 88adb21 commit 6244f3f Copy full SHA for 6244f3f
File tree 1 file changed +13
-2
lines changed
packages/utils/perf/score-report
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
- import * as Benchmark from 'benchmark' ;
1
+ import Benchmark from 'benchmark' ;
2
2
import type { Report } from '@code-pushup/models' ;
3
3
import { scoreReport } from '../../src/lib/reports/scoring' ;
4
4
import { scoreReportOptimized0 } from './optimized0' ;
@@ -34,6 +34,7 @@ const PROCESS_ARGUMENT_NUM_GROUPS_P2 = Number.parseInt(
34
34
10 ,
35
35
) ;
36
36
37
+ // eslint-disable-next-line import/no-named-as-default-member
37
38
const suite = new Benchmark . Suite ( 'report-scoring' ) ;
38
39
39
40
const AUDIT_PREFIX = 'a-' ;
@@ -131,8 +132,18 @@ function minimalReport(opt?: MinimalReportOptions): Report {
131
132
const numAuditsP2 = opt ?. numAuditsP2 ?? NUM_AUDITS_P2 ;
132
133
const numGroupRefs2 = opt ?. numGroupRefs2 ?? NUM_GROUPS_P2 ;
133
134
135
+ const date = new Date ( ) ;
136
+
134
137
return {
135
- date : '2022-01-01' ,
138
+ date : date . toISOString ( ) ,
139
+ packageName : 'perf-benchmark' ,
140
+ version : '0' ,
141
+ commit : {
142
+ date : date ,
143
+ message : 'perf: benchmark score report' ,
144
+ author : 'me' ,
145
+ hash : 'mock_hash' ,
146
+ } ,
136
147
duration : 0 ,
137
148
categories : [
138
149
{
You can’t perform that action at this time.
0 commit comments