Georg Brandl added the comment:
The "performance" you're measuring here is mostly startup, i.e. loading all
necessary modules. On Python 3, there is more to load, e.g. the filesystem
encoding, therefore startup takes a little longer.
There are efforts to improve startup time, see e.g. #16101.
Ramchandra Apte added the comment:
What is the problem?
Python 3 uses more memory because many things that were earlier ASCII strings
in Python 2 are Unicode strings. Same reason for performance AFAIK.
--
nosy: +ramchandra.apte
___
Python tracker
<
New submission from Sworddragon:
On my system (Linux 64 Bit) I figured out that python 3 needs a little more
memory than python 2 and it is a little bit slower. Here are some examples:
sworddragon@ubuntu:~$ execution-time 'python2 -c print\("0"\)'
0.21738
sworddragon@ubuntu:~$ execution-time 'p