func Serve() { err := store.WithStore(func(store Store) error { ServeWithLab(NewLaboratory(store)) return nil }) if err != nil { panic(err) } }
func RunCommandLine() error { worker := WorkerFactory() return validateParameters(worker, func() error { return store.WithStore(func(store Store) error { lab := LaboratoryFactory(store) handlers := make([]func(<-chan *Sample), 0) if !params.silent { handlers = append(handlers, func(s <-chan *Sample) { display(params.concurrency, params.iterations, params.interval, params.stop, s) }) } lab.RunWithHandlers( NewRunnableExperiment( NewExperimentConfiguration( params.iterations, params.concurrency, params.interval, params.stop, worker, params.workload)), handlers) BlockExit() return nil }) }) }