You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% gcc -O3 -march=native simple.c
% time ./a.out3.141592644./a.out 0.18s user 0.00s system 99% cpu 0.179 total
% lpython simple.py 3.14159266358932587e+00
% time ./simple.out3.14159266358932587e+00./simple.out 0.48s user 0.00s system 99% cpu 0.479 total
% lpython --fast simple.py3.14159266358932587e+00
% time ./simple.out 3.14159266358932587e+00./simple.out 0.18s user 0.00s system 99% cpu 0.179 total
% time PYTHONPATH=.. python simple.py3.141592663589326PYTHONPATH=.. python simple.py 10.78s user 0.00s system 99% cpu 10.787 total
Compiler
Time
Relative
gcc
0.179
1.00
Lpython
0.479
2.67
Lpython --fast
0.179
1.00
Python
10.78
60.22
Versions:
$ gcc --versiongcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0Copyright (C) 2021 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ lpython --versionLPython version: 0.12.0-185-g609279265Platform: LinuxDefault target: x86_64-unknown-linux-gnu
$ python --versionPython 3.10.8
Result: Lpython is 60x faster than Cpython 🚀 and has the same performance as gcc
The text was updated successfully, but these errors were encountered:
Here is the "too simple" benchmark from benchmarksgame :
https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/toosimple.html
In Python:
In C :
Results on PopOS 22.04 on AMD 5800u CPU
Versions:
Result: Lpython is 60x faster than Cpython 🚀 and has the same performance as gcc
The text was updated successfully, but these errors were encountered: