c3eef81f |
1 | #!/usr/bin/ruby |
2 | |
3 | 10000000.times { print "stuff1"," ","stuff2","\n" } |
24c437c2 |
4 | Running...0:25.02 total, 23.30 user, 1.58 sys |
283bc497 |
5 | |
b836e242 |
6 | #!/usr/bin/python |
81088cec |
7 | |
8 | for i in range(1,10000000): |
9 | print "stuff1","stuff2" |
10 | |
24c437c2 |
11 | Running...0:13.46 total, 13.27 user, 0.18 sys |
283bc497 |
12 | |
72c9d7a0 |
13 | #!/usr/bin/python |
14 | |
15 | for i in xrange(1,10000000): |
16 | print "stuff1","stuff2" |
17 | |
24c437c2 |
18 | Running...0:12.92 total, 12.89 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"." "."stuff2"."\n"; |
25 | } |
26 | ?> |
24c437c2 |
27 | Running...0:11.38 total, 9.38 user, 2.00 sys |
283bc497 |
28 | |
d8394559 |
29 | #include <iostream> |
30 | |
31 | #define RUNS 10000000UL |
32 | int main() |
33 | { |
34 | unsigned long i; |
35 | for (i=0;i<RUNS;i++) { |
36 | std::cout << "stuff1" << " " << "stuff2" << std::endl; |
37 | } |
38 | return 0; |
39 | } |
24c437c2 |
40 | Compiling...0:00.36 total, 0.32 user, 0.04 sys |
41 | Running...0:08.22 total, 6.07 user, 2.03 sys |
283bc497 |
42 | |
81088cec |
43 | #!/usr/bin/perl |
44 | |
45 | my $i=0; |
46 | for ($i=0;$i<10000000;$i++) |
47 | { |
48 | print ("stuff1"," ","stuff2","\n"); |
49 | } |
24c437c2 |
50 | Running...0:05.74 total, 5.73 user, 0.00 sys |
81088cec |
51 | |
81088cec |
52 | #include <stdio.h> |
53 | |
54 | #define RUNS 10000000UL |
55 | int main (void) |
56 | { |
57 | unsigned long i; |
58 | for (i=0;i<RUNS;i++) { |
59 | printf("%s %s\n","stuff2","stuff2"); |
60 | } |
61 | return 0; |
62 | } |
24c437c2 |
63 | Compiling...0:00.05 total, 0.02 user, 0.02 sys |
64 | Running...0:02.85 total, 2.84 user, 0.01 sys |
283bc497 |
65 | |
66 | #include "cll1.h" |
67 | |
68 | program |
69 | { |
70 | repeat(10000000) |
71 | print("stuff1","stuff2"); |
72 | } |
24c437c2 |
73 | Compiling...0:00.09 total, 0.07 user, 0.02 sys |
74 | Running...0:01.94 total, 1.92 user, 0.01 sys |
283bc497 |
75 | |
81088cec |
76 | #include <stdio.h> |
77 | |
78 | #define RUNS 10000000UL |
79 | int main (void) |
80 | { |
81 | unsigned long i; |
82 | for (i=0;i<RUNS;i++) { |
83 | fputs("stuff1",stdout); |
84 | fputs(" ",stdout); |
85 | fputs("stuff2",stdout); |
86 | fputs("\n",stdout); |
87 | } |
88 | return 0; |
89 | } |
24c437c2 |
90 | Compiling...0:00.14 total, 0.04 user, 0.01 sys |
91 | Running...0:01.56 total, 1.53 user, 0.01 sys |
283bc497 |
92 | |