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