File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,15 @@ commands:
31
31
- /usr/local/cargo/registry
32
32
key : cargo-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Cargo.toml" }}
33
33
34
+ install_zlib_dev :
35
+ description : Install zlib-dev
36
+ steps :
37
+ - run :
38
+ name : Install zlib-dev
39
+ command : |
40
+ sudo apt-get update
41
+ sudo apt-get install -y zlib1g-dev
42
+
34
43
jobs :
35
44
fmt :
36
45
docker :
@@ -188,6 +197,7 @@ jobs:
188
197
- checkout
189
198
- rust_components
190
199
- cache_restore
200
+ - install_zlib_dev
191
201
- run :
192
202
name : Cargo test
193
203
command : cargo test --all-features --all-targets
@@ -253,6 +263,7 @@ jobs:
253
263
- checkout
254
264
- rust_components
255
265
- cache_restore
266
+ - install_zlib_dev
256
267
- run :
257
268
name : Cargo test
258
269
command : cargo test --all-features --all-targets
Original file line number Diff line number Diff line change @@ -248,11 +248,8 @@ e.g. by batching writes to multiple partitions in a single ProduceRequest
248
248
[ Apache Kafka ] : https://kafka.apache.org/
249
249
[ cargo-criterion ] : https://github.com/bheisler/cargo-criterion
250
250
[ cargo-fuzz ] : https://github.com/rust-fuzz/cargo-fuzz
251
- <<<<<<< HEAD
252
251
[ cargo-with ] : https://github.com/cbourjau/cargo-with
253
- =======
254
252
[ gzip ] : https://en.wikipedia.org/wiki/Gzip
255
- >>>>>>> 4151626 (feat: support gzip compression)
256
253
[ IOx ] : https://github.com/influxdata/influxdb_iox/
257
254
[ LLDB ] : https://lldb.llvm.org/
258
255
[ perf ] : https://perf.wiki.kernel.org/index.php/Main_Page
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use futures::{stream::FuturesUnordered, StreamExt};
11
11
use rdkafka:: producer:: FutureProducer ;
12
12
use rskafka:: {
13
13
client:: {
14
- partition:: PartitionClient ,
14
+ partition:: { Compression , PartitionClient } ,
15
15
producer:: { aggregator:: RecordAggregator , BatchProducerBuilder } ,
16
16
ClientBuilder ,
17
17
} ,
@@ -81,7 +81,10 @@ pub fn criterion_benchmark(c: &mut Criterion) {
81
81
let start = Instant :: now ( ) ;
82
82
83
83
for _ in 0 ..iters {
84
- client. produce ( vec ! [ record. clone( ) ] ) . await . unwrap ( ) ;
84
+ client
85
+ . produce ( vec ! [ record. clone( ) ] , Compression :: NoCompression )
86
+ . await
87
+ . unwrap ( ) ;
85
88
}
86
89
87
90
start. elapsed ( )
You can’t perform that action at this time.
0 commit comments