Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 19 lines (15 sloc) 0.368 kb
1277d0e @fritzy bugfixes
fritzy authored
1 #!/usr/bin/python
325d124 @fritzy small job changes, added speedtest.
fritzy authored
2 from sleekpubsub.pubsub import Pubsub
3 from sleekpubsub.cli import CLInterface
4 import cProfile
5 import time
6
7
8 def testspeed(total=40000):
9 p = Pubsub()
b9c0361 @fritzy fixed speedtest, fixed cli interface
fritzy authored
10 n = p.leaf("speed")
325d124 @fritzy small job changes, added speedtest.
fritzy authored
11 start = time.time()
12 for x in range(1,total):
b9c0361 @fritzy fixed speedtest, fixed cli interface
fritzy authored
13 n.publish(x, x)
325d124 @fritzy small job changes, added speedtest.
fritzy authored
14 tt = time.time() - start
15 print tt, total / tt
16
17 cProfile.run('testspeed()')
1277d0e @fritzy bugfixes
fritzy authored
18 #testspeed()
Something went wrong with that request. Please try again.