Last active
August 29, 2015 14:22
-
-
Save taotetek/80b8610885c42ae7e1c9 to your computer and use it in GitHub Desktop.
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 characters
import czmq | |
var pull = zsock_new(ZMQ_PULL) | |
var rc = zsock_connect(pull, "inproc://zsock_test") | |
var push = zsock_new(ZMQ_PUSH) | |
rc = zsock_bind(push, "inproc://zsock_test") | |
for i in countdown(100000000, 1): | |
rc = zstr_send(push, "Hello") | |
var msg = zstr_recv(pull) | |
zsock_destroy(addr(pull)) | |
zsock_destroy(addr(push)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
time ./send
real 0m20.193s
user 0m19.375s
sys 0m0.787s