2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-27 00:58:36 +00:00
greatroar f4cd2a7120 Make backend benchmarks fairer by removing checks
Checking whether the right data is returned takes up half the time in
some benchmarks. Results for local backend benchmarks on linux/amd64:

name                                      old time/op    new time/op    delta
Backend/BenchmarkLoadFile-8                 4.89ms ± 0%    2.72ms ± 1%   -44.26%  (p=0.008 n=5+5)
Backend/BenchmarkLoadPartialFile-8           936µs ± 6%     439µs ±15%   -53.07%  (p=0.008 n=5+5)
Backend/BenchmarkLoadPartialFileOffset-8     940µs ± 1%     456µs ±10%   -51.50%  (p=0.008 n=5+5)
Backend/BenchmarkSave-8                     23.9ms ±14%    24.8ms ±41%      ~     (p=0.690 n=5+5)

name                                      old speed      new speed      delta
Backend/BenchmarkLoadFile-8               3.43GB/s ± 0%  6.16GB/s ± 1%   +79.40%  (p=0.008 n=5+5)
Backend/BenchmarkLoadPartialFile-8        4.48GB/s ± 6%  9.63GB/s ±14%  +114.78%  (p=0.008 n=5+5)
Backend/BenchmarkLoadPartialFileOffset-8  4.46GB/s ± 1%  9.22GB/s ±10%  +106.74%  (p=0.008 n=5+5)
Backend/BenchmarkSave-8                    706MB/s ±13%   698MB/s ±31%      ~     (p=0.690 n=5+5)
2020-06-17 13:11:45 +02:00
..
2018-10-05 11:39:02 -07:00
2019-07-01 00:24:45 +03:00
2018-04-01 10:16:31 +02:00
2018-03-03 15:49:44 +01:00
2019-07-01 00:24:45 +03:00
2017-07-23 14:19:13 +02:00
2018-03-03 15:49:44 +01:00
2018-03-03 15:49:44 +01:00
2017-07-23 14:19:13 +02:00
2018-04-01 10:16:31 +02:00
2017-07-23 14:19:13 +02:00
2018-04-01 10:16:31 +02:00
2018-04-01 10:16:31 +02:00