Avatar for the byteoak user
byteoak
py4j
BlogDocsChangelog

perf: memoize __getattr__ on JVMView / JavaPackage / JavaClass (issue #557)

#14Closed
Comparing
c1-python-attribute-caches
(
a74edbe
) with
master
(
77eb450
)
CodSpeed Performance Gauge
×45
Improvement
3
Untouched
19
Skipped
7

Benchmarks

29 total
test_macro_scenario[XA-3]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
×200
392.5 ms2 ms
test_m3_jvmview_class_resolution
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
×150
391.6 µs2.6 µs
test_m4_constructor_and_finalize
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
×3
574.7 µs192.8 µs
test_m7b_unescape
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
-5%
22 µs23.3 µs
test_m5a_encode_int
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
+3%
2.1 µs2 µs
test_m5b_encode_string
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
+3%
2.7 µs2.6 µs
test_macro_scenario[X6]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
+3%
67.7 ms65.8 ms
test_macro_scenario[X1-1]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
-2%
934 ms956.5 ms
test_macro_scenario[X4]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
-2%
41.2 ms42.2 ms
test_m6a_decode_int
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
+2%
1.9 µs1.9 µs
test_m2b_instance_append_str
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
-2%
186.4 µs190.1 µs
test_macro_scenario[X2-10k]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
+1%
887.2 ms875.2 ms
test_macro_scenario[XB]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
-1%
65 ms65.9 ms
test_m6b_decode_string
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
+1%
5.3 µs5.3 µs
test_m1_static_call_no_args
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
+1%
93.9 µs92.9 µs
test_macro_scenario[XC]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
-1%
937.1 ms947.2 ms
test_m5c_encode_float
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
+1%
2.7 µs2.7 µs
test_m7a_escape
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
+1%
4.5 µs4.5 µs
test_m2a_instance_append_int
py4j-python/src/py4j/tests/perf/scenarios/micro.py
CodSpeed Performance Gauge
+1%
189.4 µs188.2 µs
test_macro_scenario[X7-16k]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
0%
31 ms31.1 ms
test_cold_start_scenario[XD]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
0%
1.1 s1.1 s
test_macro_scenario[X8-16k]
py4j-python/src/py4j/tests/perf/scenarios/codspeed_macros.py
CodSpeed Performance Gauge
0%
46.1 ms46.1 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*

Commits

Click on a commit to change the comparison range
Base
master
77eb450
×45
perf: memoize JVMView / JavaPackage / JavaClass __getattr__ (issue #557)
a74edbe
2 months ago
by Tagar
© 2026 CodSpeed Technology
Home Terms Privacy Docs