@@ -10,7 +10,7 @@ use vector::test_util::{
10
10
} ;
11
11
use vector:: topology:: config:: TransformConfig ;
12
12
use vector:: topology:: { self , config} ;
13
- use vector:: { sinks, sources, transforms} ;
13
+ use vector:: { runtime , sinks, sources, transforms} ;
14
14
15
15
mod batch;
16
16
mod buffering;
@@ -61,7 +61,7 @@ fn benchmark_simple_pipe(c: &mut Criterion) {
61
61
sinks:: tcp:: TcpSinkConfig :: new ( out_addr. to_string ( ) ) ,
62
62
) ;
63
63
64
- let mut rt = tokio :: runtime:: Runtime :: new ( ) . unwrap ( ) ;
64
+ let mut rt = runtime:: Runtime :: new ( ) . unwrap ( ) ;
65
65
66
66
let output_lines = count_receive ( & out_addr) ;
67
67
@@ -107,7 +107,7 @@ fn benchmark_simple_pipe_with_tiny_lines(c: &mut Criterion) {
107
107
sinks:: tcp:: TcpSinkConfig :: new ( out_addr. to_string ( ) ) ,
108
108
) ;
109
109
110
- let mut rt = tokio :: runtime:: Runtime :: new ( ) . unwrap ( ) ;
110
+ let mut rt = runtime:: Runtime :: new ( ) . unwrap ( ) ;
111
111
112
112
let output_lines = count_receive ( & out_addr) ;
113
113
@@ -153,7 +153,7 @@ fn benchmark_simple_pipe_with_huge_lines(c: &mut Criterion) {
153
153
sinks:: tcp:: TcpSinkConfig :: new ( out_addr. to_string ( ) ) ,
154
154
) ;
155
155
156
- let mut rt = tokio :: runtime:: Runtime :: new ( ) . unwrap ( ) ;
156
+ let mut rt = runtime:: Runtime :: new ( ) . unwrap ( ) ;
157
157
158
158
let output_lines = count_receive ( & out_addr) ;
159
159
@@ -200,7 +200,7 @@ fn benchmark_simple_pipe_with_many_writers(c: &mut Criterion) {
200
200
sinks:: tcp:: TcpSinkConfig :: new ( out_addr. to_string ( ) ) ,
201
201
) ;
202
202
203
- let mut rt = tokio :: runtime:: Runtime :: new ( ) . unwrap ( ) ;
203
+ let mut rt = runtime:: Runtime :: new ( ) . unwrap ( ) ;
204
204
205
205
let output_lines = count_receive ( & out_addr) ;
206
206
@@ -264,7 +264,7 @@ fn benchmark_interconnected(c: &mut Criterion) {
264
264
sinks:: tcp:: TcpSinkConfig :: new ( out_addr2. to_string ( ) ) ,
265
265
) ;
266
266
267
- let mut rt = tokio :: runtime:: Runtime :: new ( ) . unwrap ( ) ;
267
+ let mut rt = runtime:: Runtime :: new ( ) . unwrap ( ) ;
268
268
269
269
let output_lines1 = count_receive ( & out_addr1) ;
270
270
let output_lines2 = count_receive ( & out_addr2) ;
@@ -331,7 +331,7 @@ fn benchmark_transforms(c: &mut Criterion) {
331
331
& [ "filter" ] ,
332
332
sinks:: tcp:: TcpSinkConfig :: new ( out_addr. to_string ( ) ) ,
333
333
) ;
334
- let mut rt = tokio :: runtime:: Runtime :: new ( ) . unwrap ( ) ;
334
+ let mut rt = runtime:: Runtime :: new ( ) . unwrap ( ) ;
335
335
336
336
let output_lines = count_receive ( & out_addr) ;
337
337
@@ -485,7 +485,7 @@ fn benchmark_complex(c: &mut Criterion) {
485
485
& [ "filter_500" ] ,
486
486
sinks:: tcp:: TcpSinkConfig :: new ( out_addr_500. to_string ( ) ) ,
487
487
) ;
488
- let mut rt = tokio :: runtime:: Runtime :: new ( ) . unwrap ( ) ;
488
+ let mut rt = runtime:: Runtime :: new ( ) . unwrap ( ) ;
489
489
490
490
let output_lines_all = count_receive ( & out_addr_all) ;
491
491
let output_lines_sampled = count_receive ( & out_addr_sampled) ;
0 commit comments