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

Commit

Permalink
Added performance test for testing multiple clients across process bo…
Browse files Browse the repository at this point in the history
…undaries.
  • Loading branch information
DJGosnell committed Sep 14, 2016
1 parent 5fc1381 commit 3b0ae5f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="packages.config" />
<Content Include="run-mq-multi-client.bat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DtronixMessageQueue\DtronixMessageQueue.csproj">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@ public MqPerformanceTest(string[] args) {
var exe_path = Assembly.GetExecutingAssembly().Location;

if (mode == "setup") {
Process.Start(exe_path, $"server {total_loops} {total_messages} {total_frames} {frame_size} {total_clients}")
.WaitForExit();
Thread.Sleep(500);
Process.Start(exe_path, $"mq server {total_loops} {total_messages} {total_frames} {frame_size} {total_clients}");

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


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DMQPerf.exe mq setup 5 100000 4 50 10
pause

0 comments on commit 3b0ae5f

Please sign in to comment.