Knowledge Base

MQBench.exe Measures Time to Deliver MSMQ Messages

Article ID: 186194

Article Last Modified on 8/5/2004


APPLIES TO


This article was previously published under Q186194

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 Download Center:
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.


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

Keywords: kbdownload kbfile KB186194