b84246fd |
1 | #!/usr/bin/ruby |
2 | |
3 | 10000000.times { print "stuff","\n" } |
24c437c2 |
4 | Running...0:16.66 total, 14.64 user, 1.70 sys |
283bc497 |
5 | |
b836e242 |
6 | #!/usr/bin/python |
81088cec |
7 | |
8 | for i in range(1,10000000): |
9 | print "stuff" |
10 | |
24c437c2 |
11 | Running...0:09.24 total, 8.48 user, 0.15 sys |
283bc497 |
12 | |
72c9d7a0 |
13 | #!/usr/bin/python |
14 | |
15 | for i in xrange(1,10000000): |
16 | print "stuff" |
17 | |
24c437c2 |
18 | Running...0:08.31 total, 8.14 user, 0.01 sys |
283bc497 |
19 | |
ba41861f |
20 | #!/usr/bin/php5 -q |
21 | <?php |
22 | for ( $i=0; $i<10000000; $i++ ) |
23 | { |
24 | echo "stuff1\n"; |
25 | } |
26 | ?> |
24c437c2 |
27 | Running...0:07.30 total, 4.92 user, 2.09 sys |
283bc497 |
28 | |
ba41861f |
29 | #!/usr/bin/perl |
30 | |
31 | my $i=0; |
32 | for ($i=0;$i<10000000;$i++) |
33 | { |
34 | print ("stuff"); |
35 | } |
36 | |
24c437c2 |
37 | Running...0:02.48 total, 2.48 user, 0.00 sys |
283bc497 |
38 | |
d8394559 |
39 | #include <iostream> |
40 | |
41 | #define RUNS 10000000UL |
42 | int main() |
43 | { |
44 | unsigned long i; |
45 | for (i=0;i<RUNS;i++) { |
7150dd0b |
46 | std::cout << "stuff\n"; |
d8394559 |
47 | } |
48 | return 0; |
49 | } |
24c437c2 |
50 | Compiling...0:00.37 total, 0.33 user, 0.04 sys |
51 | Running...0:01.10 total, 1.05 user, 0.00 sys |
283bc497 |
52 | |
81088cec |
53 | #include "cll1.h" |
54 | |
55 | program |
56 | { |
57 | repeat(10000000) |
58 | print("stuff"); |
59 | } |
24c437c2 |
60 | Compiling...0:00.09 total, 0.08 user, 0.01 sys |
61 | Running...0:00.98 total, 0.91 user, 0.00 sys |
283bc497 |
62 | |
81088cec |
63 | #include <stdio.h> |
64 | |
65 | #define RUNS 10000000UL |
66 | int main (void) |
67 | { |
68 | unsigned long i; |
69 | for (i=0;i<RUNS;i++) { |
70 | printf("stuff\n"); |
71 | } |
72 | return 0; |
73 | } |
24c437c2 |
74 | Compiling...0:00.07 total, 0.06 user, 0.01 sys |
75 | Running...0:00.62 total, 0.62 user, 0.00 sys |
283bc497 |
76 | |
81088cec |
77 | #include <stdio.h> |
78 | |
79 | #define RUNS 10000000UL |
80 | int main (void) |
81 | { |
82 | unsigned long i; |
83 | for (i=0;i<RUNS;i++) { |
84 | puts("stuff"); |
85 | } |
86 | return 0; |
87 | } |
24c437c2 |
88 | Compiling...0:00.06 total, 0.04 user, 0.01 sys |
89 | Running...0:00.65 total, 0.62 user, 0.00 sys |
283bc497 |
90 | |
81088cec |
91 | #include <stdio.h> |
92 | |
93 | #define RUNS 10000000UL |
94 | int main (void) |
95 | { |
96 | unsigned long i; |
97 | for (i=0;i<RUNS;i++) { |
98 | fputs("stuff\n",stdout); |
99 | } |
100 | return 0; |
101 | } |
24c437c2 |
102 | Compiling...0:00.06 total, 0.05 user, 0.00 sys |
103 | Running...0:00.55 total, 0.55 user, 0.00 sys |