Skip to content

Disable sharding by default for error cache without sharder#49

Merged
vearutop merged 3 commits into
masterfrom
no-shard-errors
May 24, 2026
Merged

Disable sharding by default for error cache without sharder#49
vearutop merged 3 commits into
masterfrom
no-shard-errors

Conversation

@vearutop

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented May 24, 2026

Copy link
Copy Markdown

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 54 7669 (+15) 5442 (+12) 578 1649 (+3) 1189 (+5) 161.3K (+269B)
Go (test) 35 5223 (+39) 3915 (+30) 219 1089 (+9) 271 119.8K (+899B)

@github-actions

Copy link
Copy Markdown

Go API Changes

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

@github-actions

Copy link
Copy Markdown

Unit Test Coverage

total: (statements) 77.0%
changed lines: (statements) 100.0%

Coverage of changed lines
File Function Coverage
Total 100.0%
failover_by_go1.18.go 100.0%
failover_by_go1.18.go:76 NewFailoverBy 100.0%
Coverage diff with base branch

No changes in coverage.

@github-actions

github-actions Bot commented May 24, 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                                                                            3.24ns ± 4%     3.21ns ± 0%     ~     (p=0.341 n=5+5)
_ShardFunc_int_specialized-4                                                                        2.35ns ± 5%     2.30ns ± 0%   -2.09%  (p=0.016 n=5+4)
_ShardFunc_int_customConfig-4                                                                       2.41ns ± 4%     2.31ns ± 1%     ~     (p=0.214 n=5+5)
_ShardedMapBy_int_default-4                                                                         35.4ns ± 1%     35.5ns ± 0%     ~     (p=0.841 n=5+5)
_ShardedMapBy_int_specialized-4                                                                     35.2ns ± 2%     44.0ns ±20%     ~     (p=0.095 n=5+5)
_ShardedMapBy_concurrent-4                                                                          40.5ns ± 1%     56.0ns ± 2%  +38.37%  (p=0.016 n=5+4)
_ShardedMapOf_concurrent-4                                                                          40.7ns ± 1%     49.9ns ±19%     ~     (p=0.690 n=5+5)
_FailoverBy_noSyncRead-4                                                                             121ns ± 0%      121ns ± 1%     ~     (p=0.246 n=5+5)
_FailoverOf_noSyncRead-4                                                                             120ns ± 0%      121ns ± 1%     ~     (p=0.111 n=5+5)
_FailoverBySyncRead-4                                                                                312ns ± 7%      310ns ± 2%     ~     (p=0.651 n=5+5)
_FailoverOfSyncRead-4                                                                                359ns ± 2%      322ns ± 4%  -10.40%  (p=0.008 n=5+5)
_ShardedByteMap_concurrent-4                                                                        60.8ns ± 2%     57.9ns ± 0%   -4.76%  (p=0.008 n=5+5)
_Failover_noSyncRead-4                                                                               126ns ± 2%      125ns ± 4%     ~     (p=0.222 n=5+5)
_FailoverSyncRead-4                                                                                  340ns ± 7%      301ns ± 1%  -11.55%  (p=0.008 n=5+5)
_FailoverAlwaysBuild-4                                                                              1.07µs ± 5%     1.03µs ± 3%     ~     (p=0.151 n=5+5)
ShardedMap_Dump-4                                                                                   2.08µs ± 5%     1.95µs ± 3%   -6.42%  (p=0.016 n=5+5)
pkg:github.com/bool64/cache/bench goos:linux goarch:amd64
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                      139ns ± 3%      136ns ± 0%   -2.21%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                         161ns ± 2%      151ns ± 0%   -6.05%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                  137ns ± 2%      134ns ± 0%   -2.04%  (p=0.016 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4         129ns ± 1%      127ns ± 0%   -1.07%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4            129ns ± 2%      127ns ± 0%     ~     (p=0.151 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4               138ns ± 1%      134ns ± 1%   -2.81%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                     53.2ns ±18%     55.0ns ±16%     ~     (p=0.841 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                        48.8ns ± 6%     46.1ns ± 1%   -5.36%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                 45.9ns ± 1%     48.8ns ±25%     ~     (p=0.905 n=4+5)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4        46.6ns ± 2%     46.5ns ± 4%     ~     (p=0.730 n=5+4)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4           42.1ns ± 3%     41.4ns ± 2%     ~     (p=0.595 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4              46.7ns ± 1%     46.3ns ± 3%     ~     (p=0.389 n=5+5)
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                      148ns ± 1%      175ns ±10%  +17.88%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                   157ns ± 5%      186ns ± 7%  +17.95%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                      147ns ± 2%      171ns ± 6%  +16.29%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                               147ns ± 2%      155ns ± 5%   +5.49%  (p=0.048 n=5+5)
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                    138ns ± 3%      143ns ± 2%   +3.61%  (p=0.032 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                        136ns ± 1%      142ns ± 1%   +4.49%  (p=0.016 n=5+4)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                           123ns ± 4%      126ns ± 4%     ~     (p=0.151 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                   212ns ± 1%      227ns ± 7%   +7.01%  (p=0.016 n=4+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                      263ns ±13%      303ns ±13%  +15.17%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4               218ns ± 1%      229ns ± 2%   +5.07%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4      214ns ± 1%      240ns ± 6%  +12.52%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4         255ns ±14%      258ns ±11%     ~     (p=0.841 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4            239ns ± 6%      245ns ± 3%     ~     (p=0.310 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                                                                                     796B ± 3%       805B ±13%     ~     (p=0.548 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                                   35.0B ± 0%      35.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         38.0B ± 0%      38.0B ± 0%     ~     (all equal)
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.07 ± 0%       4.07 ± 0%     ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                   2.62 ± 0%       2.62 ± 0%     ~     (all equal)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4          2.48 ± 0%       2.47 ± 0%   -0.32%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4             3.26 ± 0%       3.23 ± 0%   -0.74%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4                2.62 ± 0%       2.62 ± 0%     ~     (all equal)
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.06 ± 0%       4.09 ± 0%   +0.79%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                   2.62 ± 0%       2.62 ± 0%     ~     (all equal)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4          2.43 ± 0%       2.45 ± 0%   +0.95%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4             3.25 ± 0%       3.23 ± 0%   -0.71%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4                2.63 ± 0%       2.63 ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                        274 ± 0%        274 ± 0%   -0.04%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                     274 ± 0%        274 ± 0%   +0.07%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                        371 ± 0%        371 ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                                 258 ± 0%        258 ± 0%     ~     (all equal)
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                      226 ± 0%        226 ± 0%   -0.09%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                          229 ± 0%        230 ± 0%   +0.17%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                             294 ± 0%        294 ± 0%   +0.07%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                     284 ± 0%        284 ± 0%   -0.07%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                        393 ± 0%        402 ± 0%   +2.31%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                 268 ± 0%        268 ± 0%   +0.11%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4        248 ± 0%        250 ± 0%   +0.93%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4           319 ± 0%        320 ± 0%   +0.50%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4              270 ± 0%        270 ± 0%   +0.04%  (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                                       7.80 ± 0%       9.00 ± 0%  +15.29%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                          9.84 ± 0%      13.18 ± 0%  +33.98%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                   10.1 ± 0%       10.1 ± 0%   +0.10%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4          9.46 ± 0%      10.89 ± 0%  +15.13%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4             10.4 ± 0%       10.1 ± 0%   -3.45%  (p=0.008 n=5+5)
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4                10.2 ± 0%       10.4 ± 0%   +2.85%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                       9.56 ± 0%       8.89 ± 0%   -6.99%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                          12.4 ± 0%       12.4 ± 0%   +0.65%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                   10.2 ± 0%       10.3 ± 0%   +0.49%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4          8.99 ± 0%       9.13 ± 0%   +1.50%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4             9.70 ± 0%      11.18 ± 0%  +15.32%  (p=0.008 n=5+5)
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4                9.62 ± 0%      10.06 ± 0%   +4.54%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                        531 ± 0%        598 ± 0%  +12.65%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                     611 ± 0%        600 ± 0%   -1.74%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                        802 ± 0%        802 ± 0%   -0.07%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                                 506 ± 0%        531 ± 0%   +5.00%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                      644 ± 0%        637 ± 0%   -1.10%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                          624 ± 0%        630 ± 0%   +1.03%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                             663 ± 0%        660 ± 0%   -0.47%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                     871 ± 0%        882 ± 0%   +1.18%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                      1.21k ± 0%      1.33k ± 0%  +10.44%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                 964 ± 0%       1036 ± 0%   +7.50%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4      1.10k ± 0%      1.18k ± 0%   +7.16%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4         1.26k ± 0%      1.36k ± 0%   +7.67%  (p=0.008 n=5+5)
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4            1.04k ± 0%      1.03k ± 0%   -0.58%  (p=0.008 n=5+5)
Benchmark result
name                                                                                             time/op
pkg:github.com/bool64/cache goos:linux goarch:amd64
_ShardFunc_int_default-4                                                                         3.21ns ± 0%
_ShardFunc_int_specialized-4                                                                     2.30ns ± 0%
_ShardFunc_int_customConfig-4                                                                    2.31ns ± 1%
_ShardedMapBy_int_default-4                                                                      35.5ns ± 0%
_ShardedMapBy_int_specialized-4                                                                  44.0ns ±20%
_ShardedMapBy_concurrent-4                                                                       56.0ns ± 2%
_ShardedMapOf_concurrent-4                                                                       49.9ns ±19%
_FailoverBy_noSyncRead-4                                                                          121ns ± 1%
_FailoverOf_noSyncRead-4                                                                          121ns ± 1%
_FailoverBySyncRead-4                                                                             310ns ± 2%
_FailoverOfSyncRead-4                                                                             322ns ± 4%
_ShardedByteMap_concurrent-4                                                                     57.9ns ± 0%
_Failover_noSyncRead-4                                                                            125ns ± 4%
_FailoverSyncRead-4                                                                               301ns ± 1%
_FailoverAlwaysBuild-4                                                                           1.03µs ± 3%
ShardedMap_Dump-4                                                                                1.95µs ± 3%
pkg:github.com/bool64/cache/bench goos:linux goarch:amd64
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                   136ns ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                      151ns ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4               134ns ± 0%
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4      127ns ± 0%
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4         127ns ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4            134ns ± 1%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                  55.0ns ±16%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                     46.1ns ± 1%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4              48.8ns ±25%
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4     46.5ns ± 4%
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4        41.4ns ± 2%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4           46.3ns ± 3%
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                   175ns ±10%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                186ns ± 7%
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                   171ns ± 6%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                            155ns ± 5%
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                 143ns ± 2%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                     142ns ± 1%
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                        126ns ± 4%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                227ns ± 7%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                   303ns ±13%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4            229ns ± 2%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4   240ns ± 6%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4      258ns ±11%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4         245ns ± 3%

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                                                                                  805B ±13%
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                                35.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.07 ± 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.47 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4          3.23 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4             2.62 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                    2.78 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                       4.09 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                2.62 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4       2.45 ± 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                       230 ± 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                                     402 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4              268 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4     250 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4        320 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4           270 ± 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                                    9.00 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.SyncMap)-4                                       13.2 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                10.1 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4       10.9 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4          10.1 ± 0%
Concurrent/c10000:g1:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4             10.4 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMap)-4                                    8.89 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.SyncMap)-4                                       12.4 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4                10.3 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4       9.13 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4          11.2 ± 0%
Concurrent/c10000:g4:w0.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4             10.1 ± 0%
Concurrent/c1000000:g4:w10.00%:ShardedMap/LRU-4                                                     598 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMap-4                                                  600 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.SyncMap-4                                                     802 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapOf[SmallCachedValue]-4                              531 ± 0%
Concurrent/c1000000:g4:w10.00%:ShardedMapBy/LRU-4                                                   637 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.ShardedMapBy[string,SmallCachedValue]-4                       630 ± 0%
Concurrent/c1000000:g4:w10.00%:*cache.SyncMapBy[string,SmallCachedValue]-4                          660 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMap)-4                                  882 ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.SyncMap)-4                                   1.33k ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])-4            1.04k ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.ShardedMapBy[string,SmallCachedValue])-4   1.18k ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverByRunner(*cache.SyncMapBy[string,SmallCachedValue])-4      1.36k ± 0%
Concurrent/c1000000:g4:w10.00%:FailoverRunner(*cache.ShardedMapOf[SmallCachedValue])#01-4         1.03k ± 0%

@vearutop vearutop merged commit 5dcadc8 into master May 24, 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