Python startup time (was: Brainstorming for UDS-P)
Benjamin Drung
bdrung at ubuntu.com
Mon Sep 26 23:08:01 UTC 2011
Am Montag, den 26.09.2011, 13:48 +0200 schrieb Sebastien Bacher:
> Le vendredi 23 septembre 2011 à 21:56 +0100, Allison Randal a écrit :
> > Hi all,
> >
> > While we're all in the final preparations for Oneiric, it's round about
> > that time in the cycle to start thinking about plans for the next cycle.
> > What's on your mind?
>
> Some desktopish suggestions:
>
> - Boot and desktop performances (boot time, memory usage, power
> consumption)
Moving applications from Python 2 to Python 3 will increase the startup
time. I wrote a little script that runs n times hello world programs and
takes the time. That reveals a startup time increase of factor two
between Python 2 and 3. Running the hello world programs 100 times on my
system with an Core i5 takes following time (in seconds):
C: 0.04
D: 0.14
Haskell: 0.22
Bash: 0.23
CShell: 0.25
Perl: 0.27
PHP: 0.81
Python: 1.54
Python3: 3.22
Ruby: 0.28
Shell: 0.10
ZShell: 0.22
C#: 2.55
Java: 5.69
You can get your own measurements by running:
bzr branch lp:~bdrung/+junk/startup-time
cd startup-time
make install all
--
Benjamin Drung
Debian & Ubuntu Developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20110927/756f3390/attachment.sig>
More information about the Ubuntu-devel-discuss
mailing list