2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-05 04:47:51 +00:00
restic/internal/repository
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
..
testdata Moves files 2017-07-23 14:19:13 +02:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
index_test.go internal/repository: fix dropped test error 2020-02-12 13:33:54 -08:00
index.go Reuse buffer in worker functions 2019-04-13 13:38:39 +02:00
key.go Allow multiple retries for interactive password input 2019-06-13 20:11:02 +08:00
master_index_test.go repository/master_index: Optimize Index.Lookup() 2018-01-23 22:25:56 -05:00
master_index.go debug: Remove manual Str() call Log() 2018-01-25 20:49:41 +01:00
packer_manager_test.go Improve PackerManager benchmark 2020-03-05 22:30:03 +01:00
packer_manager.go backend: Improve Save() 2018-03-03 15:49:44 +01:00
repack_test.go Merge pull request #1549 from MJDSys/more_index_lookup_avoids 2018-01-24 20:53:30 +01:00
repack.go DownloadAndHash: Check error returned by Load() 2018-10-28 21:28:56 +01:00
repository_test.go Remove sync.Pool from internal/repository 2020-02-29 17:54:46 +01:00
repository.go Remove sync.Pool from internal/repository 2020-02-29 17:54:46 +01:00
testing.go Remove remnant of Go 1.9 compatibility code from tests 2020-02-26 22:23:38 +01:00
worker_group.go simpler error return 2020-01-27 18:41:46 +03:00