The Closed-Loop Benchmark Trap

from blog NULL BITMAP by Justin Jaffray, | ↗ original
Let's make a little mock database. It won't actually do anything but pretend to handle requests. I've had cause at work lately to write some Go so we're going to use Go. type Database struct { requests chan Request } func NewDatabase() Database { return Database{ requests: make(chan Request), } } const maxConcurrentRequests =...