コード例 #1
0
        private BenchRunnerOptions CreateOptions()
        {
            var options = new BenchRunnerOptions(cbxHistory.Text, txtAddress.Text);

            options.Bootstrap   = chkBootstrap.Checked;
            options.Concurrency = (short)concurrency.Value;
            options.Requests    = (int)requests.Value;
            options.Headers.AddRange(txtHeaders.Lines);
            return(options);
        }
コード例 #2
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(txtAddress.Text))
            {
                return;
            }

            BenchRunnerOptions option = CreateOptions();
            var          runner       = new BenchRunner(txtApacheBenchFileName.Text);
            WorkerParams p            = new WorkerParams(runner, option);

            _singleTestWorker.RunWorkerAsync(p);
        }
コード例 #3
0
        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();
        }
コード例 #4
0
 public WorkerParams(BenchRunner runner, BenchRunnerOptions options)
 {
     Runner  = runner;
     Options = options;
 }