More socket benchmarks [skip ci]
We're more competitive using a forked process: ..................... gevent socketpair sendall greenlet: Mean +- std dev: 256 ms +- 6 ms ..................... native socketpair sendall thread: Mean +- std dev: 44.4 ms +- 1.5 ms ..................... WARNING: the benchmark result may be unstable * the standard deviation (7.31 ms) is 13% of the mean (57.9 ms) * the maximum (89.0 ms) is 54% greater than the mean (57.9 ms) Try to rerun the benchmark with more runs, values and/or loops. Run 'python -m perf system tune' command to reduce the system jitter. Use perf stats, perf dump and perf hist to analyze results. Use --quiet option to hide these warnings. gevent socketpair sendall fork: Mean +- std dev: 57.9 ms +- 7.3 ms ..................... native socketpair sendall fork: Mean +- std dev: 44.6 ms +- 2.0 ms ..................... native udp sendto: Mean +- std dev: 30.6 ms +- 1.1 ms ..................... gevent udp sendto: Mean +- std dev: 37.5 ms +- 2.7 ms (python 3.7)
Showing
Please register or sign in to comment