You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a common case to use copy_to/from() to copy byte slice, so
optimize it by avoiding explicitly loop.
This optimization helps to reduce 90% time of byte stream copy.
VolatileSlice::copy_to_u8
time: [70.407 ns 70.728 ns 71.212 ns]
change: [-93.751% -93.706% -93.667%] (p = 0.00 < 0.05)
Performance has improved.
Found 16 outliers among 200 measurements (8.00%)
7 (3.50%) high mild
9 (4.50%) high severe
Benchmarking VolatileSlice::copy_to_u16:
VolatileSlice::copy_to_u16
time: [560.10 ns 562.15 ns 565.42 ns]
change: [-1.9847% -1.4879% -0.9829%] (p = 0.00 < 0.05)
Change within noise threshold.
Found 11 outliers among 200 measurements (5.50%)
4 (2.00%) high mild
7 (3.50%) high severe
Benchmarking VolatileSlice::copy_from_u8:
VolatileSlice::copy_from_u8
time: [69.704 ns 69.925 ns 70.285 ns]
change: [-94.918% -94.873% -94.819%] (p = 0.00 < 0.05)
Performance has improved.
Found 14 outliers among 200 measurements (7.00%)
7 (3.50%) high mild
7 (3.50%) high severe
Benchmarking VolatileSlice::copy_from_u16:
VolatileSlice::copy_from_u16
time: [682.23 ns 685.20 ns 690.26 ns]
change: [-0.7430% -0.0145% +0.8123%] (p = 0.97 > 0.05)
No change in performance detected.
Found 13 outliers among 200 measurements (6.50%)
4 (2.00%) high mild
9 (4.50%) high severe
Signed-off-by: Liu Jiang <[email protected]>
0 commit comments