mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-06-13 22:48:42 +00:00
ProxyTypes
This commit is contained in:
@@ -19,8 +19,8 @@ namespace Esiur.Tests.RPC.Client
|
||||
{
|
||||
public static async Task<TestResults> DoTest(string address,
|
||||
Dictionary<string, SharedModel.BusinessDocument[]> docsWorkloads,
|
||||
Dictionary<string, byte[]> dataWorkloads,
|
||||
Dictionary<string, int[]> intWorkloads,
|
||||
//Dictionary<string, byte[]> dataWorkloads,
|
||||
//Dictionary<string, int[]> intWorkloads,
|
||||
int warmupDelayMs = 3000,
|
||||
int postHandshakeDelayMs = 2000,
|
||||
int sampleDelayMs = 3000)
|
||||
@@ -72,44 +72,44 @@ namespace Esiur.Tests.RPC.Client
|
||||
|
||||
|
||||
|
||||
foreach (var w in dataWorkloads)
|
||||
{
|
||||
Console.Write("Bytes Workload: " + w.Key);
|
||||
await service.InvokeAsync("EchoBytes", w.Value);
|
||||
//foreach (var w in dataWorkloads)
|
||||
//{
|
||||
// Console.Write("Bytes Workload: " + w.Key);
|
||||
// await service.InvokeAsync("EchoBytes", w.Value);
|
||||
|
||||
|
||||
//if (!w.Value.SequenceEqual(rt))
|
||||
// throw new Exception("No match");
|
||||
// //if (!w.Value.SequenceEqual(rt))
|
||||
// // throw new Exception("No match");
|
||||
|
||||
|
||||
await Task.Delay(sampleDelayMs);
|
||||
(tx, rx, ctx, crx) = mon.GetDiff(tx, rx);
|
||||
Console.WriteLine($", {tx}/{rx}, {ctx}/{crx}");
|
||||
//Console.WriteLine($"Socket {sock.BytesSent}/{sock.BytesReceived}");
|
||||
// await Task.Delay(sampleDelayMs);
|
||||
// (tx, rx, ctx, crx) = mon.GetDiff(tx, rx);
|
||||
// Console.WriteLine($", {tx}/{rx}, {ctx}/{crx}");
|
||||
// //Console.WriteLine($"Socket {sock.BytesSent}/{sock.BytesReceived}");
|
||||
|
||||
rt.Bytes.Add(w.Key, (ctx, crx));
|
||||
// rt.Bytes.Add(w.Key, (ctx, crx));
|
||||
|
||||
}
|
||||
//}
|
||||
|
||||
|
||||
foreach (var w in intWorkloads)
|
||||
{
|
||||
Console.Write("Ints Workload: " + w.Key);
|
||||
await service.InvokeAsync("EchoIntArray", w.Value);
|
||||
//foreach (var w in intWorkloads)
|
||||
//{
|
||||
// Console.Write("Ints Workload: " + w.Key);
|
||||
// await service.InvokeAsync("EchoIntArray", w.Value);
|
||||
|
||||
|
||||
//if (!w.Value.SequenceEqual(rt))
|
||||
// throw new Exception("No match");
|
||||
// //if (!w.Value.SequenceEqual(rt))
|
||||
// // throw new Exception("No match");
|
||||
|
||||
|
||||
await Task.Delay(sampleDelayMs);
|
||||
(tx, rx, ctx, crx) = mon.GetDiff(tx, rx);
|
||||
Console.WriteLine($", {tx}/{rx}, {ctx}/{crx}");
|
||||
//Console.WriteLine($"Socket {sock.BytesSent}/{sock.BytesReceived}");
|
||||
// await Task.Delay(sampleDelayMs);
|
||||
// (tx, rx, ctx, crx) = mon.GetDiff(tx, rx);
|
||||
// Console.WriteLine($", {tx}/{rx}, {ctx}/{crx}");
|
||||
// //Console.WriteLine($"Socket {sock.BytesSent}/{sock.BytesReceived}");
|
||||
|
||||
rt.Ints.Add(w.Key, (ctx, crx));
|
||||
// rt.Ints.Add(w.Key, (ctx, crx));
|
||||
|
||||
}
|
||||
//}
|
||||
|
||||
await Task.Delay(sampleDelayMs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user