Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module BenchDictMigration
using BenchmarkTools
using ConcurrentCollections
using ConcurrentCollections.Implementations:
LINEAR_PROBING_DICT_EXPAND_BASESIZE, migrate_serial!, new_slots_and_pairnodes
LINEAR_PROBING_DICT_EXPAND_BASESIZE, migrate_serial!

pad16(x) = string(x; pad = 16)

Expand All @@ -28,13 +28,11 @@ function setup(; generate_options...)
for key in keys(CACHE[])
CacheType = typeof(CACHE[][key])
suite[key] = @benchmarkable(
migrate_serial!(newslots, newpairnodes, slots, pairnodes),
migrate_serial!(newslots, slots),
setup = begin
dict = CACHE[][$key]::$CacheType
slots = copy(dict.slots)
pairnodes = copy(dict.pairnodes)
newslots, newpairnodes =
new_slots_and_pairnodes(slots, pairnodes, true)
newslots = similar(slots, length(slots) * 2)
end,
evals = 1,
)
Expand Down
1 change: 1 addition & 0 deletions src/ConcurrentCollections.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ using .UnsafeAtomics: acq_rel, acquire, monotonic, release, seq_cst, unordered
include("utils.jl")
include("cache.jl")
include("atomicsutils.jl")
include("promise.jl")
include("dict.jl")
include("workstealing.jl")
include("msqueue.jl")
Expand Down
Loading