Skip to content

Extend filecache API#50

Merged
vearutop merged 2 commits into
masterfrom
filecache-api
May 29, 2026
Merged

Extend filecache API#50
vearutop merged 2 commits into
masterfrom
filecache-api

Conversation

@vearutop

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented May 29, 2026

Copy link
Copy Markdown

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 54 7953 (+284) 5653 (+211) 584 (+6) 1716 (+67) 1237 (+48) 167.2K (+6K)
Go (test) 35 5518 (+295) 4137 (+222) 219 1162 (+73) 282 (+11) 127.1K (+7.3K)

@github-actions

github-actions Bot commented May 29, 2026

Copy link
Copy Markdown

Go API Changes

# github.com/bool64/cache/filecache
## compatible changes
(*Storage[K]).Flush: added
(*Storage[K]).Flush: added
(*Storage[K]).Repair: added
(*Storage[K]).Repair: added
(*Storage[K]).Walk: added
(*Storage[K]).Walk: added
RepairConfig: added
RepairResult: added

# summary
Inferred base version: v0.5.1
Suggested version: v0.6.0

@github-actions

github-actions Bot commented May 29, 2026

Copy link
Copy Markdown

Unit Test Coverage

total: (statements) 77.5%
changed lines: (statements) 87.8%, coverage is less than 90.0%, consider testing the changes more thoroughly

Coverage of changed lines
File Function Coverage
Total 87.8%
filecache/storage_go1.18.go 87.8%
filecache/storage_go1.18.go:310 Walk 100.0%
filecache/storage_go1.18.go:364 collectInvalidEntries 100.0%
filecache/storage_go1.18.go:470 repairOrphanFiles 100.0%
filecache/storage_go1.18.go:749 flush 100.0%
filecache/storage_go1.18.go:420 collectPendingDeadVersions 97.0%
filecache/storage_go1.18.go:332 Repair 95.3%
filecache/storage_go1.18.go:738 Flush 91.3%
filecache/storage_go1.18.go:535 Close 89.7%
filecache/storage_go1.18.go:388 repairInvalidEntries 87.5%
filecache/storage_go1.18.go:437 collectOrphanPaths 83.0%
filecache/storage_go1.18.go:498 reportRepair 81.8%
filecache/storage_go1.18.go:520 reportRepairError 63.6%
Coverage diff with base branch
File Function Base Coverage Current Coverage
Total 77.0% 77.5% (+0.5%)
filecache/storage_go1.18.go Flush no function 80.0%
filecache/storage_go1.18.go Repair no function 87.5%
filecache/storage_go1.18.go Walk no function 100.0%
filecache/storage_go1.18.go collectInvalidEntries no function 100.0%
filecache/storage_go1.18.go collectOrphanPaths no function 87.5%
filecache/storage_go1.18.go collectPendingDeadVersions no function 87.5%
filecache/storage_go1.18.go dumpIndex 64.7% no function
filecache/storage_go1.18.go flush no function 70.6%
filecache/storage_go1.18.go repairInvalidEntries no function 84.6%
filecache/storage_go1.18.go repairOrphanFiles no function 100.0%
filecache/storage_go1.18.go reportRepair no function 75.0%
filecache/storage_go1.18.go reportRepairError no function 66.7%

@github-actions

github-actions Bot commented May 29, 2026

Copy link
Copy Markdown

Benchmark Result

Benchmark diff with base branch
name                                                                                             old time/op     new time/op     delta
pkg:github.com/bool64/cache goos:linux goarch:amd64
_ShardFunc_int_default-4                                                                            2.50ns ± 1%     2.49ns ± 0%     ~     (p=0.571 n=5+5)
_ShardFunc_int_specialized-4                                                                        1.82ns ± 5%     1.79ns ± 1%     ~     (p=0.175 n=5+5)
_ShardFunc_int_customConfig-4                                                                       1.84ns ± 4%     1.79ns ± 0%     ~     (p=0.056 n=5+5)
_ShardedMapBy_int_default-4                                                                         27.6ns ± 1%     27.6ns ± 1%     ~     (p=0.540 n=5+5)
_ShardedMapBy_int_specialized-4                                                                     27.5ns ± 0%     27.4ns ± 0%     ~     (p=0.119 n=5+5)
_ShardedMapBy_concurrent-4                                                                          31.4ns ± 1%     31.4ns ± 1%     ~     (p=1.000 n=5+5)
_ShardedMapOf_concurrent-4                                                                          31.5ns ± 0%     31.5ns ± 1%     ~     (p=0.794 n=5+5)
_FailoverBy_noSyncRead-4                                                                            94.3ns ± 0%     93.9ns ± 0%   -0.43%  (p=0.048 n=5+5)
_FailoverOf_noSyncRead-4                                                                            93.7ns ± 1%     92.8ns ± 1%   -0.90%  (p=0.032 n=5+5)
_FailoverBySyncRead-4                                                                                221ns ± 1%      219ns ± 1%   -1.06%  (p=0.016 n=5+5)
_FailoverOfSyncRead-4                                                                                236ns ± 1%      235ns ± 2%     ~     (p=0.310 n=5+5)
_ShardedByteMap_concurrent-4                                                                        45.5ns ± 1%     45.1ns ± 1%     ~     (p=0.095 n=5+5)
_Failover_noSyncRead-4                                                                              95.8ns ± 0%     95.8ns ± 1%     ~     (p=0.690 n=5+5)
_FailoverSyncRead-4                                                                                  230ns ± 1%      231ns ± 1%     ~     (p=0.548 n=5+5)
_FailoverAlwaysBuild-4                                                                               790ns ± 3%      778ns ± 1%     ~     (p=0.095 n=5+5)
ShardedMap_Dump-4                                                                                   1.59µs ± 1%     1.55µs ± 2%   -2.35%  (p=0.008 n=5+5)
pkg:github.com/bool64/cache/bench goos:linux goarch:amd64
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                      105ns ± 0%      104ns ± 1%   -0.82%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                         118ns ± 1%      117ns ± 1%     ~     (p=0.087 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                  104ns ± 0%      103ns ± 0%   -1.18%  (p=0.029 n=4+4)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4        98.2ns ± 1%     98.5ns ± 0%     ~     (p=0.151 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4           97.3ns ± 0%     97.8ns ± 0%   +0.51%  (p=0.016 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4               105ns ± 0%      103ns ± 0%   -1.34%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                     36.1ns ± 2%     35.3ns ± 2%     ~     (p=0.056 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                        35.4ns ± 1%     35.1ns ± 1%   -0.93%  (p=0.032 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                 36.0ns ± 1%     35.8ns ± 1%     ~     (p=0.333 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4        35.6ns ± 3%     35.7ns ± 3%     ~     (p=0.952 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4           32.1ns ± 1%     31.5ns ± 1%   -1.97%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4              36.0ns ± 2%     35.7ns ± 1%     ~     (p=0.421 n=5+5)
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                      128ns ± 0%      127ns ± 3%     ~     (p=0.151 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                   129ns ± 1%      123ns ± 1%   -4.22%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                      133ns ± 1%      128ns ± 3%   -3.62%  (p=0.016 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                               125ns ± 0%      124ns ± 1%     ~     (p=0.071 n=5+5)
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                    117ns ± 1%      117ns ± 1%     ~     (p=0.238 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                        116ns ± 0%      116ns ± 1%     ~     (p=0.460 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                           114ns ± 1%      111ns ± 2%   -2.78%  (p=0.024 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                   185ns ± 1%      177ns ± 2%   -4.09%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                      229ns ±11%      223ns ± 1%     ~     (p=0.190 n=5+4)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4               182ns ± 1%      180ns ± 1%     ~     (p=0.095 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4      183ns ± 1%      180ns ± 3%     ~     (p=0.151 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4         220ns ±12%      219ns ±10%     ~     (p=0.690 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4            193ns ± 1%      188ns ± 2%   -2.47%  (p=0.016 n=5+5)

name                                                                                             old alloc/op    new alloc/op    delta
pkg:github.com/bool64/cache goos:linux goarch:amd64
_ShardFunc_int_default-4                                                                             0.00B           0.00B          ~     (all equal)
_ShardFunc_int_specialized-4                                                                         0.00B           0.00B          ~     (all equal)
_ShardFunc_int_customConfig-4                                                                        0.00B           0.00B          ~     (all equal)
_ShardedMapBy_int_default-4                                                                          0.00B           0.00B          ~     (all equal)
_ShardedMapBy_int_specialized-4                                                                      0.00B           0.00B          ~     (all equal)
_ShardedMapBy_concurrent-4                                                                           0.00B           0.00B          ~     (all equal)
_ShardedMapOf_concurrent-4                                                                           0.00B           0.00B          ~     (all equal)
_FailoverBy_noSyncRead-4                                                                             0.00B           0.00B          ~     (all equal)
_FailoverOf_noSyncRead-4                                                                             0.00B           0.00B          ~     (all equal)
_FailoverBySyncRead-4                                                                                 144B ± 0%       144B ± 0%     ~     (all equal)
_FailoverOfSyncRead-4                                                                                 160B ± 0%       160B ± 0%     ~     (all equal)
_ShardedByteMap_concurrent-4                                                                         3.00B ± 0%      3.00B ± 0%     ~     (all equal)
_Failover_noSyncRead-4                                                                               0.00B           0.00B          ~     (all equal)
_FailoverSyncRead-4                                                                                   176B ± 0%       176B ± 0%     ~     (all equal)
_FailoverAlwaysBuild-4                                                                                455B ± 0%       455B ± 0%     ~     (all equal)
ShardedMap_Dump-4                                                                                     832B ± 2%       845B ± 3%     ~     (p=0.111 n=5+5)
pkg:github.com/bool64/cache/bench goos:linux goarch:amd64
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                      0.00B           0.00B          ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                         0.00B           0.00B          ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                  0.00B           0.00B          ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4         0.00B           0.00B          ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4            0.00B           0.00B          ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4               0.00B           0.00B          ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                      0.00B           0.00B          ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                         0.00B           0.00B          ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                  0.00B           0.00B          ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4         0.00B           0.00B          ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4            0.00B           0.00B          ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4               0.00B           0.00B          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                      16.0B ± 0%      16.0B ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                   16.0B ± 0%      16.0B ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                      24.0B ± 0%      24.0B ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                               15.0B ± 0%      15.0B ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                    11.0B ± 0%      11.0B ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                        11.0B ± 0%      11.0B ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                           18.0B ± 0%      18.0B ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                   34.0B ± 0%      34.0B ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                      42.0B ± 0%      42.0B ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4               36.0B ± 0%      36.0B ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4      32.0B ± 0%      32.0B ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4         37.6B ± 2%      38.0B ± 0%     ~     (p=0.556 n=5+4)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4            36.0B ± 0%      36.0B ± 0%     ~     (all equal)

name                                                                                             old allocs/op   new allocs/op   delta
pkg:github.com/bool64/cache goos:linux goarch:amd64
_ShardFunc_int_default-4                                                                              0.00            0.00          ~     (all equal)
_ShardFunc_int_specialized-4                                                                          0.00            0.00          ~     (all equal)
_ShardFunc_int_customConfig-4                                                                         0.00            0.00          ~     (all equal)
_ShardedMapBy_int_default-4                                                                           0.00            0.00          ~     (all equal)
_ShardedMapBy_int_specialized-4                                                                       0.00            0.00          ~     (all equal)
_ShardedMapBy_concurrent-4                                                                            0.00            0.00          ~     (all equal)
_ShardedMapOf_concurrent-4                                                                            0.00            0.00          ~     (all equal)
_FailoverBy_noSyncRead-4                                                                              0.00            0.00          ~     (all equal)
_FailoverOf_noSyncRead-4                                                                              0.00            0.00          ~     (all equal)
_FailoverBySyncRead-4                                                                                 2.00 ± 0%       2.00 ± 0%     ~     (all equal)
_FailoverOfSyncRead-4                                                                                 3.00 ± 0%       3.00 ± 0%     ~     (all equal)
_ShardedByteMap_concurrent-4                                                                          0.00            0.00          ~     (all equal)
_Failover_noSyncRead-4                                                                                0.00            0.00          ~     (all equal)
_FailoverSyncRead-4                                                                                   3.00 ± 0%       3.00 ± 0%     ~     (all equal)
_FailoverAlwaysBuild-4                                                                                11.0 ± 0%       11.0 ± 0%     ~     (all equal)
ShardedMap_Dump-4                                                                                     12.0 ± 0%       12.0 ± 0%     ~     (all equal)
pkg:github.com/bool64/cache/bench goos:linux goarch:amd64
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                       0.00            0.00          ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                          0.00            0.00          ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                   0.00            0.00          ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4          0.00            0.00          ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4             0.00            0.00          ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4                0.00            0.00          ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                       0.00            0.00          ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                          0.00            0.00          ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                   0.00            0.00          ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4          0.00            0.00          ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4             0.00            0.00          ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4                0.00            0.00          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                       0.00            0.00          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                    0.00            0.00          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                       0.00            0.00          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                                0.00            0.00          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                     0.00            0.00          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                         0.00            0.00          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                            0.00            0.00          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                    0.00            0.00          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                       1.00 ± 0%       1.00 ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                0.00            0.00          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4       0.00            0.00          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4          0.00            0.00          ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4             0.00            0.00          ~     (all equal)

name                                                                                             old MB/inuse    new MB/inuse    delta
pkg:github.com/bool64/cache/bench goos:linux goarch:amd64
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                       2.84 ± 0%       2.84 ± 0%     ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                          4.08 ± 0%       4.08 ± 0%     ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                   2.62 ± 0%       2.62 ± 0%   -0.30%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4          2.43 ± 0%       2.44 ± 0%   +0.62%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4             3.25 ± 0%       3.22 ± 0%   -0.95%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4                2.62 ± 0%       2.60 ± 0%   -0.88%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                       2.78 ± 0%       2.78 ± 0%     ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                          4.07 ± 0%       4.07 ± 0%     ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                   2.64 ± 0%       2.61 ± 0%   -1.21%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4          2.44 ± 0%       2.47 ± 0%   +0.98%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4             3.23 ± 0%       3.23 ± 0%   -0.22%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4                2.62 ± 0%       2.63 ± 0%   +0.30%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                        274 ± 0%        274 ± 0%   -0.07%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                     274 ± 0%        274 ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                        371 ± 0%        371 ± 0%   +0.03%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                                 258 ± 0%        258 ± 0%   -0.04%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                      226 ± 0%        226 ± 0%   +0.04%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                          228 ± 0%        228 ± 0%   +0.04%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                             294 ± 0%        294 ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                     284 ± 0%        284 ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                        394 ± 0%        398 ± 0%   +1.07%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                 268 ± 0%        268 ± 0%   -0.04%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4        249 ± 0%        246 ± 0%   -1.17%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4           315 ± 0%        319 ± 0%   +1.17%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4              268 ± 0%        269 ± 0%   +0.37%  (p=0.008 n=5+5)

name                                                                                             old ms/preload  new ms/preload  delta
pkg:github.com/bool64/cache/bench goos:linux goarch:amd64
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                       5.89 ± 0%       6.26 ± 0%   +6.27%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                          8.51 ± 0%       7.84 ± 0%   -7.78%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                   7.70 ± 0%       7.43 ± 0%   -3.42%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4          7.46 ± 0%       7.35 ± 0%   -1.55%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4             7.45 ± 0%       7.54 ± 0%   +1.22%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4                7.45 ± 0%       7.78 ± 0%   +4.33%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                       6.64 ± 0%       6.53 ± 0%   -1.64%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                          7.68 ± 0%       7.73 ± 0%   +0.63%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                   7.78 ± 0%       8.08 ± 0%   +3.86%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4          7.86 ± 0%       7.55 ± 0%   -3.97%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4             8.96 ± 0%       7.69 ± 0%  -14.23%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4                7.74 ± 0%       7.32 ± 0%   -5.44%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                        480 ± 0%        446 ± 0%   -7.16%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                     463 ± 0%        444 ± 0%   -4.06%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                        693 ± 0%        642 ± 0%   -7.33%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                                 420 ± 0%        417 ± 0%   -0.81%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                      578 ± 0%        544 ± 0%   -5.88%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                          558 ± 0%        565 ± 0%   +1.27%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                             599 ± 0%        606 ± 0%   +1.14%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                     730 ± 0%        718 ± 0%   -1.70%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                      1.05k ± 0%      1.03k ± 0%   -1.43%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                 822 ± 0%        824 ± 0%   +0.24%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4        969 ± 0%        917 ± 0%   -5.40%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4         1.07k ± 0%      1.02k ± 0%   -4.12%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4              808 ± 0%        804 ± 0%   -0.54%  (p=0.008 n=5+5)
Benchmark result
name                                                                                             time/op
pkg:github.com/bool64/cache goos:linux goarch:amd64
_ShardFunc_int_default-4                                                                         2.49ns ± 0%
_ShardFunc_int_specialized-4                                                                     1.79ns ± 1%
_ShardFunc_int_customConfig-4                                                                    1.79ns ± 0%
_ShardedMapBy_int_default-4                                                                      27.6ns ± 1%
_ShardedMapBy_int_specialized-4                                                                  27.4ns ± 0%
_ShardedMapBy_concurrent-4                                                                       31.4ns ± 1%
_ShardedMapOf_concurrent-4                                                                       31.5ns ± 1%
_FailoverBy_noSyncRead-4                                                                         93.9ns ± 0%
_FailoverOf_noSyncRead-4                                                                         92.8ns ± 1%
_FailoverBySyncRead-4                                                                             219ns ± 1%
_FailoverOfSyncRead-4                                                                             235ns ± 2%
_ShardedByteMap_concurrent-4                                                                     45.1ns ± 1%
_Failover_noSyncRead-4                                                                           95.8ns ± 1%
_FailoverSyncRead-4                                                                               231ns ± 1%
_FailoverAlwaysBuild-4                                                                            778ns ± 1%
ShardedMap_Dump-4                                                                                1.55µs ± 2%
pkg:github.com/bool64/cache/bench goos:linux goarch:amd64
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                   104ns ± 1%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                      117ns ± 1%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4               103ns ± 0%
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4     98.5ns ± 0%
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4        97.8ns ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4            103ns ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                  35.3ns ± 2%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                     35.1ns ± 1%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4              35.8ns ± 1%
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4     35.7ns ± 3%
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4        31.5ns ± 1%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4           35.7ns ± 1%
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                   127ns ± 3%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                123ns ± 1%
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                   128ns ± 3%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                            124ns ± 1%
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                 117ns ± 1%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                     116ns ± 1%
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                        111ns ± 2%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                177ns ± 2%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                   223ns ± 1%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4            180ns ± 1%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4   180ns ± 3%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4      219ns ±10%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4         188ns ± 2%

name                                                                                             alloc/op
pkg:github.com/bool64/cache goos:linux goarch:amd64
_ShardFunc_int_default-4                                                                          0.00B     
_ShardFunc_int_specialized-4                                                                      0.00B     
_ShardFunc_int_customConfig-4                                                                     0.00B     
_ShardedMapBy_int_default-4                                                                       0.00B     
_ShardedMapBy_int_specialized-4                                                                   0.00B     
_ShardedMapBy_concurrent-4                                                                        0.00B     
_ShardedMapOf_concurrent-4                                                                        0.00B     
_FailoverBy_noSyncRead-4                                                                          0.00B     
_FailoverOf_noSyncRead-4                                                                          0.00B     
_FailoverBySyncRead-4                                                                              144B ± 0%
_FailoverOfSyncRead-4                                                                              160B ± 0%
_ShardedByteMap_concurrent-4                                                                      3.00B ± 0%
_Failover_noSyncRead-4                                                                            0.00B     
_FailoverSyncRead-4                                                                                176B ± 0%
_FailoverAlwaysBuild-4                                                                             455B ± 0%
ShardedMap_Dump-4                                                                                  845B ± 3%
pkg:github.com/bool64/cache/bench goos:linux goarch:amd64
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                   0.00B     
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                      0.00B     
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4               0.00B     
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4      0.00B     
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4         0.00B     
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4            0.00B     
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                   0.00B     
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                      0.00B     
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4               0.00B     
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4      0.00B     
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4         0.00B     
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4            0.00B     
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                   16.0B ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                16.0B ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                   24.0B ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                            15.0B ± 0%
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                 11.0B ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                     11.0B ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                        18.0B ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                34.0B ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                   42.0B ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4            36.0B ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4   32.0B ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4      38.0B ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4         36.0B ± 0%

name                                                                                             allocs/op
pkg:github.com/bool64/cache goos:linux goarch:amd64
_ShardFunc_int_default-4                                                                           0.00     
_ShardFunc_int_specialized-4                                                                       0.00     
_ShardFunc_int_customConfig-4                                                                      0.00     
_ShardedMapBy_int_default-4                                                                        0.00     
_ShardedMapBy_int_specialized-4                                                                    0.00     
_ShardedMapBy_concurrent-4                                                                         0.00     
_ShardedMapOf_concurrent-4                                                                         0.00     
_FailoverBy_noSyncRead-4                                                                           0.00     
_FailoverOf_noSyncRead-4                                                                           0.00     
_FailoverBySyncRead-4                                                                              2.00 ± 0%
_FailoverOfSyncRead-4                                                                              3.00 ± 0%
_ShardedByteMap_concurrent-4                                                                       0.00     
_Failover_noSyncRead-4                                                                             0.00     
_FailoverSyncRead-4                                                                                3.00 ± 0%
_FailoverAlwaysBuild-4                                                                             11.0 ± 0%
ShardedMap_Dump-4                                                                                  12.0 ± 0%
pkg:github.com/bool64/cache/bench goos:linux goarch:amd64
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                    0.00     
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                       0.00     
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                0.00     
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4       0.00     
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4          0.00     
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4             0.00     
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                    0.00     
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                       0.00     
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                0.00     
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4       0.00     
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4          0.00     
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4             0.00     
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                    0.00     
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                 0.00     
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                    0.00     
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                             0.00     
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                  0.00     
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                      0.00     
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                         0.00     
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                 0.00     
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                    1.00 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4             0.00     
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4    0.00     
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4       0.00     
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4          0.00     

name                                                                                             MB/inuse
pkg:github.com/bool64/cache goos:linux goarch:amd64
_ShardFunc_int_default-4
_ShardFunc_int_specialized-4
_ShardFunc_int_customConfig-4
_ShardedMapBy_int_default-4
_ShardedMapBy_int_specialized-4
_ShardedMapBy_concurrent-4
_ShardedMapOf_concurrent-4
_FailoverBy_noSyncRead-4
_FailoverOf_noSyncRead-4
_FailoverBySyncRead-4
_FailoverOfSyncRead-4
_ShardedByteMap_concurrent-4
_Failover_noSyncRead-4
_FailoverSyncRead-4
_FailoverAlwaysBuild-4
ShardedMap_Dump-4
pkg:github.com/bool64/cache/bench goos:linux goarch:amd64
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                    2.84 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                       4.08 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                2.62 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4       2.44 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4          3.22 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4             2.60 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                    2.78 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                       4.07 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                2.61 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4       2.47 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4          3.23 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4             2.63 ± 0%
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                     274 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                  274 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                     371 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                              258 ± 0%
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                   226 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                       228 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                          294 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                  284 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                     398 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4              268 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4     246 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4        319 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4           269 ± 0%

name                                                                                             ms/preload
pkg:github.com/bool64/cache goos:linux goarch:amd64
_ShardFunc_int_default-4
_ShardFunc_int_specialized-4
_ShardFunc_int_customConfig-4
_ShardedMapBy_int_default-4
_ShardedMapBy_int_specialized-4
_ShardedMapBy_concurrent-4
_ShardedMapOf_concurrent-4
_FailoverBy_noSyncRead-4
_FailoverOf_noSyncRead-4
_FailoverBySyncRead-4
_FailoverOfSyncRead-4
_ShardedByteMap_concurrent-4
_Failover_noSyncRead-4
_FailoverSyncRead-4
_FailoverAlwaysBuild-4
ShardedMap_Dump-4
pkg:github.com/bool64/cache/bench goos:linux goarch:amd64
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                    6.26 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                       7.84 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                7.43 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4       7.35 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4          7.54 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4             7.78 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                    6.53 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                       7.73 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                8.08 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4       7.55 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4          7.69 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4             7.32 ± 0%
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                     446 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                  444 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                     642 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                              417 ± 0%
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                   544 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                       565 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                          606 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                  718 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                   1.03k ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4              824 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4     917 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4      1.02k ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4           804 ± 0%

@vearutop vearutop merged commit 958ffe4 into master May 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant