Example #1
0
File: main.go Project: twmb/dash
func benchSpScDVq(cfg qbench.Cfg) qbench.Results {
	cfg.Impl = BlockDVQ{
		Q:    spscdvq.New(queueSize),
		EnqB: block.New(),
		DeqB: block.New(),
	}
	return qbench.Bench(cfg)
}
Example #2
0
File: main.go Project: twmb/dash
func benchChan(cfg qbench.Cfg) qbench.Results {
	cfg.Impl = Chan(make(chan unsafe.Pointer, queueSize))
	return qbench.Bench(cfg)
}