public string ProcessBenchmark(CollectorCommand command) { try { var benchmark = new BenchmarkTest(command.ThreadsCount); benchmark.AddLoadTestFactory(CreateReaderTest(ReadJsonFile(command.FileName), command.TableName, command.HashFileName, command.CountReplics, command.PageSize)); benchmark.Run(); } catch (Exception e) { return(e.Message); } return(string.Empty); }
public string ReaderCommandHandler(CollectorCommand command) { return(_collectorExecutor.ProcessBenchmark(command)); }