Sujet : Re: tcl versa python regarding performance
De : aotto1968 (at) *nospam* t-online.de (aotto1968)
Groupes : comp.lang.tclDate : 16. Aug 2024, 21:16:25
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v9oc2s$1i6n2$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
I spend some time on research and further optimization ... but ...
One thing seems clear: "lang-Python" with AGGRESSIVE optimization is NOT far from "lang-C" speed.
With aggressive optimization, Python creates a runtime optimization (--enable-optimizations) during compilation and that WITH threads which, unlike TCL, CANNOT be disabled in Python. Also, the runtime library is FIRMLY integrated into Python.
TCL with aggressive optimization also uses the static runtime library BUT no threads.
→ for updates check the picture in the comment.
https://www.facebook.com/share/p/WYmfnRWybY1Sh42f/summary for aggressive …
> .../perf-aggressive/inst/sbin/c/x86_64-suse-linux-gnu-perfclient --timeout 2 --send --sec 4 @ .../perf-aggressive/inst/sbin/c/x86_64-suse-linux-gnu-perfserver
:PerfClientExec }: start ------------------------ : result [ count / sec ]
:statistics }: --send : 403779.6 [ 1615234 / 4.000286 ]
:PerfClientExec }: end: ----------------------------------------
> .../perf-aggressive/inst/sbin/c/x86_64-suse-linux-gnu-perfclient --timeout 2 --send --sec 4 @ $PYTHON .../perf-aggressive/inst/sbin/py/x86_64-suse-linux-gnu-perfserver.py
:PerfClientExec }: start ------------------------ : result [ count / sec ]
:statistics }: --send : 311506.7 [ 1246216 / 4.000608 ]
:PerfClientExec }: end: ----------------------------------------
> .../perf-aggressive/inst/sbin/c/x86_64-suse-linux-gnu-perfclient --timeout 2 --send --sec 4 @ $TCLSH .../perf-aggressive/inst/sbin/tcl/x86_64-suse-linux-gnu-perfserver.tcl
:PerfClientExec }: start ------------------------ : result [ count / sec ]
:statistics }: --send : 227151.4 [ 908663 / 4.000253 ]
:PerfClientExec }: end: ----------------------------------------