tokio-rs / bytes

Utilities for working with bytes
MIT License
1.86k stars 278 forks source link

test(benches): encloses bytes into `test::black_box` for clone benches #691

Closed wyfo closed 4 months ago

wyfo commented 5 months ago

Closes #690 Without it, it seems to me that compiler is able to inline the vtable, resulting in similar results for clone_shared and clone_arg_vec.