Created
November 1, 2012 14:13
-
-
Save smetj/3993851 to your computer and use it in GitHub Desktop.
Compare speed of direct queue to queue connections vs. 1 big queue with routing logic.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/smetj/experiments/blob/master/python/testlap/compare_direct_q_vs_routing_logic.py | |
[vagrant@buildbox testlap]$ python compare_direct_q_vs_routing_logic.py | |
Running test_1 | |
OK | |
Running test_2 | |
OK | |
2.6.6 (r266:84292, Sep 11 2012, 08:34:23) | |
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] | |
Linux-2.6.32-279.11.1.el6.x86_64-x86_64-with-centos-6.3-Final | |
Compare speed of direct queue to queue connections vs. 1 big queue with routing logic. | |
+----------+--------------------------------------------------------------------------------------------------+--------+---------------+ | |
| Function | Description | Result | Seconds | | |
+----------+--------------------------------------------------------------------------------------------------+--------+---------------+ | |
| test_1 | Setup a classic Wisbone style set of 4 connected modules and push 50000 messages through them. | OK | 6.3184270859 | | |
| test_2 | Use 1 big queue with routing logic for 4 connected modules and push 50000 messages through them. | OK | 12.8806209564 | | |
+----------+--------------------------------------------------------------------------------------------------+--------+---------------+ | |
[vagrant@buildbox testlap]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment