Created
July 21, 2014 07:53
-
-
Save ek-nath/5ee3b7a980784089b4ff to your computer and use it in GitHub Desktop.
Revisions
-
ek-nath created this gist
Jul 21, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ from datetime import datetime import librarbbitmq msg = 'x'*20000 M_PROP = {'delivery_mode': 1} connection = librabbitmq.connecetion(...) channel = connection.channel() start = datetime.now() for _ in xrange(count): connection._basic_publish(1, msg, X, RK, M_PROP, False, False) end1 = datetime.now() channel.close() end2 = datetime.now() print end1-start, end2-start