Avatar for the byteoak user
byteoak
py4j
BlogDocsChangelog

perf: disable Nagle's algorithm on py4j socket connections (closes #516)

#6Merged
Comparing
disable-nagle-loopback
(
c2dffda
) with
master
(
b7e694f
)
CodSpeed Performance Gauge
×42
Improvement
1
Untouched
17
Skipped
7

Benchmarks

25 total
test_macro_scenario[X7-16k]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
×42
4,399.8 ms103.6 ms
test_m5b_encode_string
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
+6%
2.6 µs2.5 µs
test_macro_scenario[X1-1]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
-3%
940.8 ms970.1 ms
test_m5a_encode_int
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
+3%
2.1 µs2.1 µs
test_m7b_unescape
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
+2%
22 µs21.6 µs
test_m7a_escape
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
-2%
4.5 µs4.6 µs
test_m1_static_call_no_args
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
-2%
95.6 µs97.1 µs
test_m5c_encode_float
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
+2%
3 µs3 µs
test_m6b_decode_string
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
-1%
5.3 µs5.3 µs
test_macro_scenario[X2-10k]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
-1%
893.8 ms906.9 ms
test_m4_constructor_and_finalize
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
-1%
584.3 µs590.8 µs
test_m3_jvmview_class_resolution
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
-1%
391.8 µs395.6 µs
test_m2a_instance_append_int
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
-1%
192.5 µs194.4 µs
test_m2b_instance_append_str
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
-1%
192.8 µs194.5 µs
test_macro_scenario[X4]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
+1%
43.4 ms43.1 ms
test_macro_scenario[X8-16k]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
-1%
46 ms46.2 ms
test_m6a_decode_int
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
0%
1.9 µs1.9 µs
test_macro_scenario[X6]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
0%
69.1 ms68.9 ms
test_m5b_encode_string
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
28.2 µs*
test_m5c_encode_float
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
27.8 µs*
test_m7a_escape
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
22.2 µs*
test_m6a_decode_int
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
22.9 µs*
test_m7b_unescape
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
62.4 µs*
test_m6b_decode_string
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
37.8 µs*
test_m5a_encode_int
py4j-python/src/py4j/tests/perf/scenarios/micro.py
Skipped
25.7 µs*

Commits

Click on a commit to change the comparison range
Base
master
b7e694f
×42
perf: disable Nagle's algorithm on all py4j socket connections
c2dffda
5 months ago
by Tagar
© 2026 CodSpeed Technology
Home Terms Privacy Docs