$ time ./micropython -c 'print(1)'
./micropython -c 'print(1)' 0.00s user 0.00s system 0% cpu 0.002 total
$ time ./python2 -c 'print(1)'
python2 -c 'print(1)' 0.01s user 0.00s system 52% cpu 0.019 total
$ time ./python3 -c 'print(1)'
python3 -c 'print(1)' 0.03s user 0.00s system 85% cpu 0.035 total
It's basically doing random access I/O (the slowest thing your computer can do) proportional to (large constant factor) * (num imports in program) * (length of PYTHONPATH).
When you can use it, a shebang of
can speed things up substantially.
Perl starts up an order of magnitude faster too (more like 3ms than 30ms). Ruby seems to have the same problem as Python.
It's about 60ms on my other laptop (Linux), and that's just at the threshold of noticeable and annoying.
I wonder how hard it would be to get Kivy running on this.