Пример #1
0
        public void Update(BenchResults bench)
        {
            if(bench.Options.Bootstrap)
                ExecuteAndWaitEnd(bench.Options.CreateBootstrapOptions().ToArguments());

            var result = ExecuteAndWaitEnd(bench.Options.ToArguments());

            bench.Update(result);
        }
Пример #2
0
        public void Update(BenchResults bench)
        {
            if (bench.Options.Bootstrap)
            {
                ExecuteAndWaitEnd(bench.Options.CreateBootstrapOptions().ToArguments());
            }

            var result = ExecuteAndWaitEnd(bench.Options.ToArguments());

            bench.Update(result);
        }
        private void AddResultToChart(BenchResults result)
        {
            string name = result.Options.Name;

            {
                var serie = new Series(name);
                serie.Points.AddY(result.RequestsPerSecond);
                chart1.Series.Add(serie);
            }

            {
                var serie = new Series(name);
                serie.Points.AddY(result.DocumentLength / 1024.0);
                chart2.Series.Add(serie);
            }
        }
 public ComboItem(BenchResults result)
 {
     this.Result = result;
     this.Name = result.Options.Name;
 }
        private void btnAddToHistory_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(txtAddress.Text))
                return;

            BenchRunnerOptions option = CreateOptions();
            BenchResults result = new BenchResults(option, null);
            Archive.Add(result);

            UpdateVisualization();
        }