File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,9 @@ const _benchmarkContext = {
126
126
'jldb:Environment' : { '@type' : '@id' } ,
127
127
128
128
// per environment
129
+ // label
130
+ // ex: 'Setup 1' (for reports)
131
+ 'jldb:label' : { '@type' : 'xsd:string' } ,
129
132
// architecture type
130
133
// ex: x86
131
134
'jldb:arch' : { '@type' : 'xsd:string' } ,
@@ -171,6 +174,7 @@ EarlReport.prototype.setupForBenchmarks = function(options) {
171
174
if ( options . testEnv ) {
172
175
// add report environment
173
176
const fields = [
177
+ [ 'label' , 'jldb:label' ] ,
174
178
[ 'arch' , 'jldb:arch' ] ,
175
179
[ 'cpu' , 'jldb:cpu' ] ,
176
180
[ 'cpuCount' , 'jldb:cpuCount' ] ,
Original file line number Diff line number Diff line change 18
18
* TEST_ENV=cpu,runtime # only cpu and runtime
19
19
* TEST_ENV=auto,comment='special test' # all auto with override
20
20
* Available fields:
21
+ * - label - ex: 'Setup 1' (short label for reports)
21
22
* - arch - ex: 'x64'
22
23
* - cpu - ex: 'Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz'
23
24
* - cpuCount - ex: 8
@@ -114,6 +115,7 @@ if(process.env.TEST_ENV) {
114
115
}
115
116
_test_env . split ( ',' ) . forEach ( pair => {
116
117
if ( pair === 'auto' ) {
118
+ testEnv . name = 'auto' ;
117
119
testEnv . arch = 'auto' ;
118
120
testEnv . cpu = 'auto' ;
119
121
testEnv . cpuCount = 'auto' ;
@@ -131,6 +133,9 @@ if(process.env.TEST_ENV) {
131
133
}
132
134
}
133
135
} ) ;
136
+ if ( testEnv . label === 'auto' ) {
137
+ testEnv . label = '' ;
138
+ }
134
139
if ( testEnv . arch === 'auto' ) {
135
140
testEnv . arch = process . arch ;
136
141
}
You can’t perform that action at this time.
0 commit comments