b84246fd |
1 | #!/usr/bin/ruby |
2 | |
3 | 10000000.times { print "stuff","\n" } |
67db9ef1 |
4 | Running...0:16.24 total, 14.59 user, 1.63 sys, 0 outputs |
283bc497 |
5 | |
b836e242 |
6 | #!/usr/bin/python |
81088cec |
7 | |
8 | for i in range(1,10000000): |
9 | print "stuff" |
10 | |
67db9ef1 |
11 | Running...0:08.79 total, 8.57 user, 0.14 sys, 0 outputs |
283bc497 |
12 | |
72c9d7a0 |
13 | #!/usr/bin/python |
14 | |
15 | for i in xrange(1,10000000): |
16 | print "stuff" |
17 | |
67db9ef1 |
18 | Running...0:08.34 total, 8.22 user, 0.01 sys, 0 outputs |
283bc497 |
19 | |
ba41861f |
20 | #!/usr/bin/php5 -q |
21 | <?php |
22 | for ( $i=0; $i<10000000; $i++ ) |
23 | { |
24 | echo "stuff1\n"; |
25 | } |
26 | ?> |
67db9ef1 |
27 | Running...0:07.05 total, 4.83 user, 2.10 sys, 0 outputs |
283bc497 |
28 | |
67db9ef1 |
29 | #include <string.h> |
30 | |
31 | #define RUNS 10000000UL |
32 | int main (void) |
33 | { |
34 | unsigned long i; |
35 | char *s1="stuff\n"; |
36 | int l1=strlen(s1); |
37 | |
38 | for (i=0;i<RUNS;i++) |
39 | { |
40 | write(1,s1,l1); |
41 | } |
42 | return 0; |
43 | } |
44 | Compiling...0:00.06 total, 0.05 user, 0.00 sys, 0 outputs |
45 | Running...0:02.93 total, 0.86 user, 2.06 sys, 0 outputs |
ba41861f |
46 | #!/usr/bin/perl |
47 | |
48 | my $i=0; |
49 | for ($i=0;$i<10000000;$i++) |
50 | { |
51 | print ("stuff"); |
52 | } |
53 | |
67db9ef1 |
54 | Running...0:02.60 total, 2.57 user, 0.01 sys, 0 outputs |
283bc497 |
55 | |
d8394559 |
56 | #include <iostream> |
57 | |
58 | #define RUNS 10000000UL |
59 | int main() |
60 | { |
61 | unsigned long i; |
62 | for (i=0;i<RUNS;i++) { |
7150dd0b |
63 | std::cout << "stuff\n"; |
d8394559 |
64 | } |
65 | return 0; |
66 | } |
67db9ef1 |
67 | Compiling...0:00.39 total, 0.34 user, 0.05 sys, 0 outputs |
68 | Running...0:01.02 total, 0.98 user, 0.01 sys, 0 outputs |
283bc497 |
69 | |
81088cec |
70 | #include "cll1.h" |
71 | |
72 | program |
73 | { |
74 | repeat(10000000) |
75 | print("stuff"); |
76 | } |
67db9ef1 |
77 | Compiling...0:00.13 total, 0.12 user, 0.01 sys, 0 outputs |
78 | Running...0:01.25 total, 1.23 user, 0.00 sys, 0 outputs |
283bc497 |
79 | |
81088cec |
80 | #include <stdio.h> |
81 | |
82 | #define RUNS 10000000UL |
83 | int main (void) |
84 | { |
85 | unsigned long i; |
86 | for (i=0;i<RUNS;i++) { |
87 | printf("stuff\n"); |
88 | } |
89 | return 0; |
90 | } |
67db9ef1 |
91 | Compiling...0:00.06 total, 0.04 user, 0.01 sys, 0 outputs |
92 | Running...0:00.62 total, 0.60 user, 0.00 sys, 0 outputs |
283bc497 |
93 | |
81088cec |
94 | #include <stdio.h> |
95 | |
96 | #define RUNS 10000000UL |
97 | int main (void) |
98 | { |
99 | unsigned long i; |
100 | for (i=0;i<RUNS;i++) { |
101 | puts("stuff"); |
102 | } |
103 | return 0; |
104 | } |
67db9ef1 |
105 | Compiling...0:00.06 total, 0.05 user, 0.00 sys, 0 outputs |
106 | Running...0:00.63 total, 0.63 user, 0.00 sys, 0 outputs |
283bc497 |
107 | |