Module Expr Str Import alias Import alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad While CompareGt NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad AugAssignSub NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num While CompareLt NameLoad NameLoad body Assign NameStore BinOpMult Str Call NameLoad Call NameLoad BinOpDiv NameLoad Num BinOpSub NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Import alias Import alias ImportFrom alias Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpMult NameLoad Num Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Str Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore TupleLoad Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr decorator_list Import alias Import alias FunctionDef arguments args defaults body Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Str Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore TupleLoad Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Str TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Import alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Lambda arguments args defaults NameLoad Lambda arguments args defaults NameLoad NameLoad Print Str SubscriptLoad NameLoad Index NameLoad If AttributeLoad NameLoad attr body Print Str SubscriptLoad NameLoad Index NameLoad Print Str BinOpMult BinOpDiv BinOpSub SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Num
N/A N/A Benchmark evaluating eventlet's performance at speaking to itself over a localhost socket. N/A time N/A benchmarks N/A BYTES 1000 N/A SIZE 1 N/A CONCURRENCY 50 N/A TRIES 5 reader N/A N/A sock N/A N/A N/A expect BYTES N/A N/A expect 0 N/A N/A d N/A N/A sock recv N/A min expect SIZE N/A expect N/A len d N/A writer N/A N/A addr socket_impl N/A N/A N/A sock N/A socket_impl N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A N/A sock connect addr N/A sent 0 N/A N/A sent BYTES N/A N/A d N/A xy N/A max N/A min N/A SIZE 2 N/A BYTES sent 1 N/A N/A N/A sock sendall d N/A sent N/A len d N/A green_accepter N/A N/A server_sock pool N/A N/A N/A i N/A xrange CONCURRENCY N/A N/A N/A sock addr N/A N/A server_sock accept N/A N/A N/A pool spawn_n reader sock N/A heavy_accepter N/A N/A server_sock pool N/A N/A N/A i N/A xrange CONCURRENCY N/A N/A N/A sock addr N/A N/A server_sock accept N/A t N/A N/A threading Thread None reader reader thread N/A sock N/A N/A N/A t start N/A N/A N/A pool append t N/A N/A eventlet.green.socket N/A eventlet eventlet debug N/A N/A N/A debug hub_exceptions True launch_green_threads N/A N/A N/A N/A N/A pool N/A N/A eventlet GreenPool N/A N/A CONCURRENCY 2 1 N/A server_sock N/A N/A N/A N/A eventlet green socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A N/A server_sock bind N/A localhost 0 N/A N/A N/A server_sock listen 50 N/A addr N/A localhost N/A N/A N/A server_sock getsockname N/A 1 N/A N/A N/A pool spawn_n green_accepter server_sock pool N/A i N/A xrange CONCURRENCY N/A N/A N/A N/A pool spawn_n writer addr N/A N/A N/A eventlet green socket socket N/A N/A N/A pool waitall N/A N/A threading N/A socket launch_heavy_threads N/A N/A N/A N/A N/A threads N/A N/A server_sock N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A N/A server_sock bind N/A localhost 0 N/A N/A N/A server_sock listen 50 N/A addr N/A localhost N/A N/A N/A server_sock getsockname N/A 1 N/A accepter_thread N/A N/A threading Thread None heavy_accepter accepter thread N/A server_sock threads N/A N/A N/A accepter_thread start N/A N/A N/A threads append accepter_thread N/A i N/A xrange CONCURRENCY N/A N/A client_thread N/A N/A threading Thread None writer writer thread N/A addr N/A socket socket N/A N/A N/A client_thread start N/A N/A N/A threads append client_thread N/A t threads N/A N/A N/A N/A t join N/A N/A N/A __name__ __main__ N/A N/A optparse N/A parser N/A N/A optparse OptionParser N/A N/A N/A parser add_option --compare-threading action store_true dest threading default False N/A N/A N/A parser add_option -b --bytes type int dest bytes default BYTES N/A N/A N/A parser add_option -s --size type int dest size default SIZE N/A N/A N/A parser add_option -c --concurrency type int dest concurrency default CONCURRENCY N/A N/A N/A parser add_option -t --tries type int dest tries default TRIES N/A N/A opts args N/A N/A parser parse_args N/A BYTES N/A opts bytes N/A SIZE N/A opts size N/A CONCURRENCY N/A opts concurrency N/A TRIES N/A opts tries N/A funcs N/A launch_green_threads N/A N/A opts threading N/A N/A funcs N/A launch_green_threads launch_heavy_threads N/A results N/A N/A benchmarks measure_best TRIES 3 N/A N/A N/A N/A None N/A N/A N/A N/A None funcs N/A green: N/A results N/A launch_green_threads N/A N/A opts threading N/A N/A threads: N/A results N/A launch_heavy_threads N/A % N/A N/A N/A N/A results N/A launch_green_threads N/A results N/A launch_heavy_threads N/A results N/A launch_heavy_threads 100