Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 3b0ae5f

Browse files
committed
Added performance test for testing multiple clients across process boundaries.
1 parent 5fc1381 commit 3b0ae5f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/DtronixMessageQueue.Tests.Performance/DtronixMessageQueue.Tests.Performance.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7070
</Content>
7171
<None Include="packages.config" />
72+
<Content Include="run-mq-multi-client.bat">
73+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
74+
</Content>
7275
</ItemGroup>
7376
<ItemGroup>
7477
<ProjectReference Include="..\DtronixMessageQueue\DtronixMessageQueue.csproj">

src/DtronixMessageQueue.Tests.Performance/MqPerformanceTest.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ public MqPerformanceTest(string[] args) {
3939
var exe_path = Assembly.GetExecutingAssembly().Location;
4040

4141
if (mode == "setup") {
42-
Process.Start(exe_path, $"server {total_loops} {total_messages} {total_frames} {frame_size} {total_clients}")
43-
.WaitForExit();
44-
Thread.Sleep(500);
42+
Process.Start(exe_path, $"mq server {total_loops} {total_messages} {total_frames} {frame_size} {total_clients}");
4543

4644
for (int i = 0; i < total_clients; i++) {
47-
Process.Start(exe_path, $"client {total_loops} {total_messages} {total_frames} {frame_size} {total_clients}");
45+
Process.Start(exe_path, $"mq client {total_loops} {total_messages} {total_frames} {frame_size} {total_clients}");
4846
}
4947

5048

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
DMQPerf.exe mq setup 5 100000 4 50 10
2+
pause

0 commit comments

Comments
 (0)