-Perf tests

This commit is contained in:
James Newton-King
2017-01-09 23:44:08 +13:00
parent c9b2ec8055
commit 5fefa723ad
2 changed files with 60 additions and 1 deletions
+8 -1
View File
@@ -53,7 +53,7 @@ namespace Newtonsoft.Json.TestConsole
//t.DeserializeLargeJson();
//PerformanceTests t = new PerformanceTests();
SerializeJsonAsync();
TokenWriteToAsync();
//t.Iterations = 50000;
//t.BenchmarkDeserializeMethod<TestClass>(PerformanceTests.SerializeMethod.JsonNet, PerformanceTests.JsonText);
@@ -96,6 +96,13 @@ namespace Newtonsoft.Json.TestConsole
}
}
public static void TokenWriteToAsync()
{
PerformanceTests t = new PerformanceTests();
t.Iterations = 50000;
t.TokenWriteToAsync().Wait();
}
public static void SerializeJsonAsync()
{
PerformanceTests t = new PerformanceTests();