Skip to content

Instantly share code, notes, and snippets.

@pfreixes
Created August 28, 2017 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfreixes/337ac25d606d3ed67c80d4a018fed141 to your computer and use it in GitHub Desktop.
Save pfreixes/337ac25d606d3ed67c80d4a018fed141 to your computer and use it in GitHub Desktop.
from time import time
from blinker import signal
N = 1000000
test = signal('test')
start = time()
for i in range(N):
test.send()
dt = time() - start
print("Signals per second: {}".format(N/dt))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment