private void PerformanceBenchmarkCuratedJson(string path) { path = string.Format("TestJsons/{0}", path); string json = TextFileConcatenation.ReadMultipartFile(path); const int numberOfIterations = 1; JsonPerfMeasurement.MeasurePerf(json, path, numberOfIterations); }
private void ExecuteMicroBenchmark(string token, string microName) { List <string> tokenArray = new List <string>(); for (int i = 0; i < 1000000; i++) { tokenArray.Add(token); } string tokenArrayJson = "[" + string.Join(",", tokenArray) + "]"; JsonPerfMeasurement.MeasurePerf(tokenArrayJson, microName + "Micro Benchmark"); }