4 ms·
Can compile the following 16 python programs to 7 languages, compile and run the resulting code and produce the same output as the source python. https://githu
by adsharma 5y ago
Can compile the following 16 python programs to 7 languages, compile and run the resulting code and produce the same output as the source python.
https://github.com/adsharma/py2many/tree/main/tests/cases https://github.com/adsharma/py2many/tree/main/tests/cases
https://github.com/adsharma/py2many/tree/main/tests/expected https://github.com/adsharma/py2many/tree/main/tests/expected
100x speedup on this benchmark
http://www.hildstrom.com/projects/langcomp/index.html#test-python.py http://www.hildstrom.com/projects/langcomp/index.html#test-p...
py2many.py --rust=1 test.py
rustc -O test.rs
$ time -p ./test.py
iterations 3
sum 1.4999999709476166e+17
real 436.55
user 435.45
sys 1.08
$ time -p ./test 3
iterations 3
sum 1.500000E+17
real 4.94
user 4.67
sys 0.25