Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public string ReaderCommandHandler(CollectorCommand command)
 {
     return(_collectorExecutor.ProcessBenchmark(command));
 }