How to measure or benchmark messages per second (MPS)?

Imported from previous forum

[ original email was from Khody Azmoon - khody.azmoon@gmail.com ]
Hello,

Does anyone know the best way to measure or benchmark how many messages per second (MPS) using open source tools?

Regards,

Khody