aboutsummaryrefslogtreecommitdiff
path: root/benches/bytes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'benches/bytes.rs')
-rw-r--r--benches/bytes.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/benches/bytes.rs b/benches/bytes.rs
index c5b8412..61d1e83 100644
--- a/benches/bytes.rs
+++ b/benches/bytes.rs
@@ -88,6 +88,7 @@ fn from_long_slice(b: &mut Bencher) {
#[bench]
fn slice_empty(b: &mut Bencher) {
b.iter(|| {
+ // `clone` is to convert to ARC
let b = Bytes::from(vec![17; 1024]).clone();
for i in 0..1000 {
test::black_box(b.slice(i % 100..i % 100));