public override void Setup() { StartTimeOffsetGenerator = new RandomGenerator(new LocalFileSaver()); _sentMessages = Enumerable.Repeat(0, _tk.JobConfig.Connections).ToList(); _brokenConnectionInds = Enumerable.Repeat(false, _tk.JobConfig.Connections).ToList(); if (!_tk.Init.ContainsKey(_tk.BenchmarkCellConfig.Step)) { SetCallbacks(); _tk.Init[_tk.BenchmarkCellConfig.Step] = true; } }
public override void Setup() { CreateHttpClients(); _serverName = ServiceUtils.GenerateServerName(); _serviceUtils = new ServiceUtils(_tk.ConnectionString); _endpoint = _serviceUtils.Endpoint; StartTimeOffsetGenerator = new RandomGenerator(new LocalFileSaver()); if (!_tk.Init.ContainsKey(_tk.BenchmarkCellConfig.Step)) { SetCallbacks(); _tk.Init[_tk.BenchmarkCellConfig.Step] = true; } }
private void Setup() { StartTimeOffsetGenerator = new RandomGenerator(new LocalFileSaver()); _sentMessagesEcho = new List <int>(_tk.BenchmarkCellConfig.MixEchoConnection); _sentMessagesBroadcast = new List <int>(_tk.BenchmarkCellConfig.MixBroadcastConnection); _sentMessagesGroup = new List <int>(_tk.BenchmarkCellConfig.MixGroupConnection); for (var i = 0; i < _tk.BenchmarkCellConfig.MixEchoConnection; i++) { _sentMessagesEcho.Add(0); } for (var i = 0; i < _tk.BenchmarkCellConfig.MixBroadcastConnection; i++) { _sentMessagesBroadcast.Add(0); } for (var i = 0; i < _tk.BenchmarkCellConfig.MixGroupConnection; i++) { _sentMessagesGroup.Add(0); } SetCallbacks(); _tk.Counters.ResetCounters(withConnection: false); }
public EchoOp(BaseTool pkg) { _pkg = pkg; StartTimeOffsetGenerator = new RandomGenerator(new LocalFileSaver()); }