2
2
mirror of https://github.com/octoleo/restic.git synced 2025-02-02 11:58:26 +00:00
restic/internal
greatroar b592614061 Improve PackerManager benchmark
The previous benchmark spent much of its time allocating RNGs and
generating too many random numbers. It now spends 90% of its time
hashing and half of the rest writing to files.

name             old time/op    new time/op    delta
PackerManager-8     319ms ± 1%     247ms ± 1%  -22.48%  (p=0.000 n=20+18)

name             old speed      new speed      delta
PackerManager-8   143MB/s ± 1%   213MB/s ± 1%  +48.63%  (p=0.000 n=10+18)

name             old alloc/op   new alloc/op   delta
PackerManager-8     635kB ± 0%      92kB ± 0%  -85.48%  (p=0.000 n=10+19)

name             old allocs/op  new allocs/op  delta
PackerManager-8     1.64k ± 0%     1.43k ± 0%  -12.76%  (p=0.000 n=10+20)
2020-03-05 22:30:03 +01:00
..
2020-01-27 18:28:21 +03:00
2018-10-11 19:40:38 +02:00
2017-07-23 14:19:13 +02:00
2018-05-22 20:48:17 +02:00
2019-04-13 13:38:39 +02:00
2019-06-30 23:56:36 +03:00
2018-03-03 15:49:44 +01:00
2018-05-01 14:38:59 +02:00