Skip to content

Commit cc23297

Browse files
committed
ci: install zlib-dev
1 parent c467649 commit cc23297

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.circleci/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ commands:
3131
- /usr/local/cargo/registry
3232
key: cargo-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Cargo.toml" }}
3333

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+
3443
jobs:
3544
fmt:
3645
docker:
@@ -188,6 +197,7 @@ jobs:
188197
- checkout
189198
- rust_components
190199
- cache_restore
200+
- install_zlib_dev
191201
- run:
192202
name: Cargo test
193203
command: cargo test --all-features --all-targets
@@ -253,6 +263,7 @@ jobs:
253263
- checkout
254264
- rust_components
255265
- cache_restore
266+
- install_zlib_dev
256267
- run:
257268
name: Cargo test
258269
command: cargo test --all-features --all-targets

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,8 @@ e.g. by batching writes to multiple partitions in a single ProduceRequest
248248
[Apache Kafka]: https://kafka.apache.org/
249249
[cargo-criterion]: https://github.com/bheisler/cargo-criterion
250250
[cargo-fuzz]: https://github.com/rust-fuzz/cargo-fuzz
251-
<<<<<<< HEAD
252251
[cargo-with]: https://github.com/cbourjau/cargo-with
253-
=======
254252
[gzip]: https://en.wikipedia.org/wiki/Gzip
255-
>>>>>>> 4151626 (feat: support gzip compression)
256253
[IOx]: https://github.com/influxdata/influxdb_iox/
257254
[LLDB]: https://lldb.llvm.org/
258255
[perf]: https://perf.wiki.kernel.org/index.php/Main_Page

benches/write_throughput.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use futures::{stream::FuturesUnordered, StreamExt};
1111
use rdkafka::producer::FutureProducer;
1212
use rskafka::{
1313
client::{
14-
partition::PartitionClient,
14+
partition::{Compression, PartitionClient},
1515
producer::{aggregator::RecordAggregator, BatchProducerBuilder},
1616
ClientBuilder,
1717
},
@@ -81,7 +81,10 @@ pub fn criterion_benchmark(c: &mut Criterion) {
8181
let start = Instant::now();
8282

8383
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();
8588
}
8689

8790
start.elapsed()

0 commit comments

Comments
 (0)