⇤ ← Revision 1 as of 2008-04-03 13:26:48
Size: 1292
Comment:
|
Size: 1420
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 16: | Line 16: |
[http://groups.google.com/group/python-cn/browse_thread/thread/4e4eb6d67a867c21/8b346859a4c96e29#8b346859a4c96e29 v] | [http://groups.google.com/group/python-cn/browse_thread/thread/4e4eb6d67a867c21/8b346859a4c96e29#8b346859a4c96e29 一段python程序的效率问题] |
Line 18: | Line 18: |
== random.pl == | == time vs 0.1 == attachment:vs-0.1.png === random.pl === |
Line 32: | Line 35: |
== random.py == | === random.py === |
Line 53: | Line 56: |
== time vs == | == time vs 0.2 == |
Line 56: | Line 60: |
=== random0.2.py === {{{#!python }}} |
Py vs Perl 运行
{{{俊杰蔡 <[email protected]> reply-to [email protected], to [email protected], date Thu, Apr 3, 2008 at 5:50 PM subject [CPyUG:45860] }}} [http://groups.google.com/group/python-cn/browse_thread/thread/4e4eb6d67a867c21/8b346859a4c96e29#8b346859a4c96e29 一段python程序的效率问题]
time vs 0.1
attachment:vs-0.1.png
random.pl
use strict; open (WW,"> 500000") or die "$!"; foreach(1..5000000){ my $i = int(rand 10000000) % 3; print WW $i."\n"; } close WW;
random.py
time vs 0.2
attachment:vs-0.1.png
random0.2.py
反馈
创建 by -- ZoomQuiet [DateTime(2008-04-03T13:26:48Z)]