commit 020e25c9b3b5e7172f0047787ce68b21814eeab4
parent 9423fd896148db1ad57936a4cd5ecdee1ef62bf6
Author: Mikolaj Lenczewski <mikolaj.lenczewski308@gmail.com>
Date: Tue, 25 Aug 2020 23:42:21 +0100
Added compile-time switch for debug related constants.
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/NetSharp/NetSharp.Benchmarks/Program.cs b/NetSharp/NetSharp.Benchmarks/Program.cs
@@ -115,7 +115,11 @@ namespace NetSharp.Benchmarks
private const int DefaultPort = 44231;
private static readonly IPAddress DefaultAddress = IPAddress.Loopback;
- public const int PacketSize = 8192, PacketCount = 100_000, ClientCount = 8;
+#if DEBUG
+ public const int PacketSize = 4096, PacketCount = 100_000, ClientCount = 8;
+#else // RELEASE
+ public const int PacketSize = 8192, PacketCount = 1_000_000, ClientCount = 10;
+#endif
public static readonly EndPoint ClientEndPoint = new IPEndPoint(DefaultAddress, 0);
public static readonly Encoding ServerEncoding = Encoding.UTF8;