code: func (cmd *BenchCommand) runReads(db *bolt.DB, options *BenchOptions, results *BenchResults) error {
  	// Start profiling for reads.
  	if options.ProfileMode == "r" {
  		cmd.startProfiling(options)
  	}
  
  	t := time.Now()
  
  	var err error
  	switch options.ReadMode {
  	case "seq":
  		switch options.WriteMode {
  		case "seq-nest", "rnd-nest":
  			err = cmd.runReadsSequentialNested(db, options, results)
  		default:
  			err = cmd.runReadsSequential(db, options, results)
  		}
  	default:
  		return fmt.Errorf("invalid read mode: %s", options.ReadMode)
  	}
  
  	// Save read time.
  	results.ReadDuration = time.Since(t)
  
  	// Stop profiling for reads.
  	if options.ProfileMode == "rw" || options.ProfileMode == "r" {
  		cmd.stopProfiling()
  	}
  
  	return err
  }
docs: // Reads from the database.