syncthing/lib/db
Jakob Borg 0d9a04c713 Reuse blockkey, speeds up large Update and Replace calls
benchmark                         old ns/op      new ns/op      delta
BenchmarkReplaceAll-8             2866418930     2880834572     +0.50%
BenchmarkUpdateOneChanged-8       226635         236596         +4.40%
BenchmarkUpdateOneUnchanged-8     229090         227326         -0.77%
BenchmarkNeedHalf-8               104483393      105151538      +0.64%
BenchmarkHave-8                   29288220       28827492       -1.57%
BenchmarkGlobal-8                 159269126      150768724      -5.34%
BenchmarkNeedHalfTruncated-8      108235000      104434216      -3.51%
BenchmarkHaveTruncated-8          28945489       27860093       -3.75%
BenchmarkGlobalTruncated-8        149355833      149972888      +0.41%

benchmark                         old allocs     new allocs     delta
BenchmarkReplaceAll-8             1054944        555451         -47.35%
BenchmarkUpdateOneChanged-8       1135           1135           +0.00%
BenchmarkUpdateOneUnchanged-8     1135           1135           +0.00%
BenchmarkNeedHalf-8               374777         374779         +0.00%
BenchmarkHave-8                   151995         151996         +0.00%
BenchmarkGlobal-8                 530063         530066         +0.00%
BenchmarkNeedHalfTruncated-8      374699         374702         +0.00%
BenchmarkHaveTruncated-8          151834         151834         +0.00%
BenchmarkGlobalTruncated-8        530021         530049         +0.01%

benchmark                         old bytes      new bytes      delta
BenchmarkReplaceAll-8             5074297112     5018351912     -1.10%
BenchmarkUpdateOneChanged-8       135097         135085         -0.01%
BenchmarkUpdateOneUnchanged-8     134976         134976         +0.00%
BenchmarkNeedHalf-8               44759436       44769400       +0.02%
BenchmarkHave-8                   11911138       11930612       +0.16%
BenchmarkGlobal-8                 81609867       81523668       -0.11%
BenchmarkNeedHalfTruncated-8      46588024       46692342       +0.22%
BenchmarkHaveTruncated-8          11348354       11348357       +0.00%
BenchmarkGlobalTruncated-8        79485168       81843956       +2.97%
2015-10-21 23:05:23 +02:00
..
testdata mv internal lib 2015-08-09 09:35:26 +02:00
.gitignore mv internal lib 2015-08-09 09:35:26 +02:00
benchmark_test.go Make benchmarks more realistic 2015-10-21 23:04:29 +02:00
blockmap_test.go Fix import paths 2015-09-22 19:38:46 +02:00
blockmap.go Reuse blockkey, speeds up large Update and Replace calls 2015-10-21 23:05:23 +02:00
concurrency_test.go mv internal lib 2015-08-09 09:35:26 +02:00
debug.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
leveldb_test.go mv internal lib 2015-08-09 09:35:26 +02:00
leveldb_xdr.go mv internal lib 2015-08-09 09:35:26 +02:00
leveldb.go The GC runs are legacy and slows things down quite a bit 2015-10-21 23:05:22 +02:00
namespaced_test.go mv internal lib 2015-08-09 09:35:26 +02:00
namespaced.go mv internal lib 2015-08-09 09:35:26 +02:00
set_test.go Make benchmarks more realistic 2015-10-21 23:04:29 +02:00
set.go Also keep GlobalSize in RAM 2015-10-21 21:58:48 +02:00
truncated.go Fix import paths 2015-09-22 19:38:46 +02:00
virtualmtime_test.go mv internal lib 2015-08-09 09:35:26 +02:00
virtualmtime.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00