File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ import fs from 'fs';
4
4
import path from 'path' ;
5
5
import si from 'systeminformation' ;
6
6
import Stream1KB from './stream_1KB' ;
7
- import Dummy from './dummy' ;
7
+ // import Dummy from './dummy';
8
8
9
9
async function main ( ) : Promise < void > {
10
10
await fs . promises . mkdir ( path . join ( __dirname , 'results' ) , { recursive : true } ) ;
11
11
// Running benches
12
12
await Stream1KB ( ) ;
13
- await Dummy ( ) ;
13
+ // await Dummy();
14
14
const resultFilenames = await fs . promises . readdir (
15
15
path . join ( __dirname , 'results' ) ,
16
16
) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ async function main() {
26
26
} ;
27
27
28
28
const data1KiB = Buffer . alloc ( 1024 , 0xf0 ) ;
29
- const host = '::ffff: 127.0.0.1' as Host ;
29
+ const host = '127.0.0.1' as Host ;
30
30
const certChainPem = await fs . promises . readFile (
31
31
path . resolve ( path . join ( __dirname ) , '../tests/fixtures/certs/rsa1.crt' ) ,
32
32
) ;
@@ -79,11 +79,13 @@ async function main() {
79
79
} ,
80
80
host,
81
81
port : quicServer . port ,
82
+ localHost : host ,
82
83
crypto,
83
84
logger,
84
85
} ) ;
86
+
85
87
// Running benchmark
86
- const summary = b . suite (
88
+ const summary = await b . suite (
87
89
path . basename ( __filename , path . extname ( __filename ) ) ,
88
90
b . add ( 'send 1Kib of data' , async ( ) => {
89
91
const stream = await client . connection . streamNew ( ) ;
@@ -103,11 +105,9 @@ async function main() {
103
105
] ) ;
104
106
} ) ,
105
107
...suiteCommon ,
106
- b . complete ( async ( ) => {
107
- await quicServer . stop ( { force : true } ) ;
108
- await client . destroy ( { force : true } ) ;
109
- } ) ,
110
108
) ;
109
+ await quicServer . stop ( { force : true } ) ;
110
+ await client . destroy ( { force : true } ) ;
111
111
return summary ;
112
112
}
113
113
You can’t perform that action at this time.
0 commit comments