public override void Run() { LiveModel liveModel = Helpers.CreateLiveModelOrExit(this.ConfigPath); RLDriver rlDriver = new RLDriver(liveModel, loopKind: this.GetLoopKind()); rlDriver.StepInterval = TimeSpan.FromMilliseconds(this.SleepIntervalMs); rlDriver.Run(new StatsFileStepProvider(StatsConfig, Seed, Steps)); }
public override void Run() { LiveModel liveModel = Helpers.CreateLiveModelOrExit(this.ConfigPath); RLDriver rlDriver = new RLDriver(liveModel); rlDriver.StepInterval = TimeSpan.FromMilliseconds(this.SleepIntervalMs); PerfTestStepProvider stepProvider = new PerfTestStepProvider(this.ActionsCount, this.SharedFeatures, this.ActionFeatures) { Duration = TimeSpan.FromMilliseconds(this.DurationMs), Tag = this.Tag }; rlDriver.Run(stepProvider); stepProvider.Stats.Print(); }
public override void Run() { LiveModel liveModel = Helpers.CreateLiveModelOrExit(this.ConfigPath); RLDriver rlDriver = new RLDriver(liveModel, loopKind: this.GetLoopKind()); rlDriver.StepInterval = TimeSpan.FromMilliseconds(this.SleepIntervalMs); using (TextReader textReader = File.OpenText(this.LogPath)) { IEnumerable <string> dsJsonLines = textReader.LazyReadLines(); ReplayStepProvider stepProvider = new ReplayStepProvider(dsJsonLines); rlDriver.Run(stepProvider); } }
public static void RunReplay(string [] args) { if (args.Length != 2) { // TODO: Better usage WriteErrorAndExit("Missing path to client configuration json and dsjson log"); } LiveModel liveModel = CreateLiveModelOrExit(args[0]); RLDriver rlDriver = new RLDriver(liveModel); using (TextReader textReader = File.OpenText(args[1])) { IEnumerable <string> dsJsonLines = textReader.LazyReadLines(); ReplayStepProvider stepProvider = new ReplayStepProvider(dsJsonLines); rlDriver.Run(stepProvider); } }
private PerfTestStepProvider DoWork(string tag) { LiveModel liveModel = Helpers.CreateLiveModelOrExit(this.ConfigPath); PerfTestStepProvider stepProvider = new PerfTestStepProvider(this.ActionsCount, this.SharedFeatures, this.ActionFeatures) { Duration = TimeSpan.FromMilliseconds(this.DurationMs), Tag = tag, DataSize = this.DataSize * 1024 * 1024 * 1024 / this.Parallelism }; Console.WriteLine(stepProvider.DataSize); RLDriver rlDriver = new RLDriver(liveModel) { StepInterval = TimeSpan.FromMilliseconds(this.SleepIntervalMs) }; rlDriver.Run(stepProvider); stepProvider.Stats.Print(); return(stepProvider); }
public RLSimulator(LiveModel liveModel) { this.driver = new RLDriver(liveModel); }