1
- var exec = require ( ' child_process' ) . execSync ;
2
- var fs = require ( 'fs' ) ;
3
- var path = require ( ' path' ) ;
4
- var yargs = require ( ' yargs' ) ;
1
+ var exec = require ( " child_process" ) . execSync ;
2
+ var fs = require ( "fs" ) ;
3
+ var path = require ( " path" ) ;
4
+ var yargs = require ( " yargs" ) ;
5
5
6
- let directories = process . argv . length <= 2 ? [ ] : process . argv . slice ( 2 , process . argv . length ) ;
6
+ let directories = process . argv . length <= 2 ? [ ] : process . argv . slice ( 2 , process . argv . length ) ;
7
7
8
8
console . log ( "directories" , directories ) ;
9
9
10
- if ( directories . length <= 1 ) {
10
+ if ( directories . length <= 1 ) {
11
11
console . log ( "ERROR: Please specify the directories" ) ;
12
12
process . exit ( 1 ) ;
13
13
}
@@ -30,18 +30,18 @@ for (let dir of directories) {
30
30
31
31
for ( let dir of directories ) {
32
32
for ( let bench of benchmarks ) {
33
- map . get ( dir ) . set ( bench , JSON . parse ( fs . readFileSync ( path . join ( dir , bench ) , ' utf8' ) ) ) ;
33
+ map . get ( dir ) . set ( bench , JSON . parse ( fs . readFileSync ( path . join ( dir , bench ) , " utf8" ) ) ) ;
34
34
}
35
35
}
36
36
37
- let output = ';' ;
38
- output += directories . join ( ";" ) + "\n" ;
37
+ let output = ";" ;
38
+ output += directories . join ( ";" ) + "\n" ;
39
39
for ( let bench of benchmarks ) {
40
40
output += bench + ";" ;
41
41
for ( let dir of directories ) {
42
- output += map . get ( dir ) . get ( bench ) . median + ";"
42
+ output += map . get ( dir ) . get ( bench ) . median + ";" ;
43
43
}
44
44
output += "\n" ;
45
- }
45
+ }
46
46
47
47
console . log ( output ) ;
0 commit comments