func benchSpScDVq(cfg qbench.Cfg) qbench.Results { cfg.Impl = BlockDVQ{ Q: spscdvq.New(queueSize), EnqB: block.New(), DeqB: block.New(), } return qbench.Bench(cfg) }
func benchChan(cfg qbench.Cfg) qbench.Results { cfg.Impl = Chan(make(chan unsafe.Pointer, queueSize)) return qbench.Bench(cfg) }