code: func (d *DockerHelper) DoListContainerBenchmark(interval, testPeriod time.Duration, listAll bool) []int {
  	startTime := time.Now()
  	latencies := []int{}
  	for {
  		start := time.Now()
  		_, err := d.client.ContainerList(getContext(), types.ContainerListOptions{All: listAll})
  		d.errStats.add("list containers", err)
  		latencies = append(latencies, int(time.Since(start).Nanoseconds()))
  		if time.Now().Sub(startTime) >= testPeriod {
  			break
  		}
  		if interval != 0 {
  			time.Sleep(interval)
  		}
  	}
  	return latencies
  }
docs: // DoListContainerBenchmark does periodically ListContainers with specific interval, returns latencies of
  // all the calls in nanoseconds