Liste des Groupes | Revenir à cl c |
On 24/11/2024 01:36, Bart wrote:On 24/11/2024 00:24, Waldek Hebisch wrote:Bart <bc@freeuk.com> wrote:And of course, there is a question why program with runtime that
does not matter is written in a low level language?
I mean it doesn't matter if it's half the speed. It might matter if it
was 40 times slower.
There's quite a gulf between even unoptimised native code and even a
fast dynamic language interpreter.
People seem to think that the only choices are the fastest possible C
code at one end, and slow CPython at the other:
gcc/O3-tcc-----------------------------------------------------CPython
On this scale, gcc/O3 code and tcc code are practically the same!
(I wasn't able to post results earlier because CPython hadn't finished.
But for a JPEG decoder test on an 85Mpixel image, all using the same
algorithm:
gcc-O3 2.2 seconds
mm6-opt 3.3 seconds (My older compiler with the register optim.)
mm7 5.7 seconds (My unoptimising new one)
cc 6.0 seconds (Unoptimising)
tcc 8.1 seconds
PyPy 43 seconds (Uses JIT to optimise hot loops to native code)
CPython 386 seconds)
Les messages affichés proviennent d'usenet.