pythonのコードをコンパイルできると知り、実効速度を比べてみました。 for i in range(0, 1000000): print i こちらのコードで比較しています。 $ time python main.py python main.py 0.80s user 0.64s system 71% cpu 2.000 total $ time python main.py python main.pyc 0.79s user 0.64s system 68% cpu 2.074 total コンパイルと聞いたので、Javaなどのように単純に実行速度が早くなるのかと思ったのですが、変わりませんでした。 どのような時に有効で、どのようなときに使われるのが一般的なのかおしえていただけますか。
![バイトコンパイルってどういう時に使うんですか?](https://cdn-ak-scissors.b.st-hatena.com/image/square/f6bc393cd0b6bd2196935e603c5d031bd6ca6699/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fja%2FImg%2Fapple-touch-icon%402.png%3Fv%3D1cfb10b305ca)