Sample: MQBench.exe Measures Time to Deliver MSMQ Messages

ID: Q186194

The information in this article applies to:

SUMMARY

Microsoft Message Queue Server includes MQBench, a sample command-line utility. MQBench sends and receives messages to and from transactional or non-transactional queues and measures the time to complete the entire operation. The output provides useful statistics. MQBench simplifies benchmarking the performance of MSMQ systems.

MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

 ~ mq_bench.exe

The file is also available on the Microsoft anonymous ftp server:

   ftp://ftp.microsoft.com/bussys/distapps/msmq/Samples/1.0/mq_bench.exe

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

Sample Command Line and Output

Use the following syntax to run MQBench:

   mqbench -sr 100 100 -p .\q1 -t 10

   Total messages: 1000 Sent
   Test time:      6.900 seconds
   Benchmark:      145 messages per second
   Throughput:     14493 bytes per second

This benchmarks 1,000 recoverable messages sent to a local queue using 10 threads. Each message body contains 100 bytes.

To see a full the description of the command-line options, use the following command:

   mqbench /?

To install this file, simply copy the extracted executable to the location from which you wish to launch it. The source code for the tool is also included in the compressed file.

Performance Considerations When Using MQBench

For additional information about Microsoft Message Queue Server performance, please see the "MSMQ Administrator's Guide."

For general information about Microsoft Message Queue Server, see the Microsoft Web site at http://www.microsoft.com/msmq/.

Keywords          : MQDeploy MQQueue 
Version           : WINNT:1.0
Platform          : winnt

Last Reviewed: June 4, 1998