|
|
|
|
|
by glofish
2373 days ago
|
|
I might have not explained properly, the output of the program was saved into the file, python generate.py > big.py
then this file was executed with Python, that took 5 seconds: time python big.py
and yes, I had no idea what to expect, hence the test. |
|
- big.py is almost 15MB
- Running `lua5.3 big.py` takes about 1/6 the time on my Linux VM. (I had to use a big.py only half the size because this VM was too small for the original.)
So Python isn't the fastest at this but I wouldn't call it terrible. Basically all of that time was parsing/compiling, since the time is the same with big.py changed to `def foo(): x0=0 # etc.`