c3eef81f |
1 | #!/usr/bin/ruby |
2 | |
3 | 10000000.times { print "stuff1"," ","stuff2","\n" } |
283bc497 |
4 | Running...0:24.98 total, 23.33 user, 1.54 sys, 0 KB average size |
5 | |
b836e242 |
6 | #!/usr/bin/python |
81088cec |
7 | |
8 | for i in range(1,10000000): |
9 | print "stuff1","stuff2" |
10 | |
283bc497 |
11 | Running...0:13.82 total, 13.59 user, 0.19 sys, 0 KB average size |
12 | |
72c9d7a0 |
13 | #!/usr/bin/python |
14 | |
15 | for i in xrange(1,10000000): |
16 | print "stuff1","stuff2" |
17 | |
283bc497 |
18 | Running...0:13.24 total, 13.22 user, 0.00 sys, 0 KB average size |
19 | |
ba41861f |
20 | #!/usr/bin/php5 -q |
21 | <?php |
22 | for ( $i=0; $i<10000000; $i++ ) |
23 | { |
24 | echo "stuff1"." "."stuff2"."\n"; |
25 | } |
26 | ?> |
283bc497 |
27 | Running...0:11.87 total, 9.74 user, 2.06 sys, 0 KB average size |
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 | } |
283bc497 |
40 | Compiling...0:00.37 total, 0.34 user, 0.03 sys, 0 KB average size |
41 | Running...0:08.07 total, 6.14 user, 1.92 sys, 0 KB average size |
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 | } |
283bc497 |
50 | Running...0:05.66 total, 5.64 user, 0.01 sys, 0 KB average size |
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 | } |
283bc497 |
63 | Compiling...0:00.06 total, 0.05 user, 0.00 sys, 0 KB average size |
64 | Running...0:02.85 total, 2.84 user, 0.00 sys, 0 KB average size |
65 | |
66 | #include "cll1.h" |
67 | |
68 | program |
69 | { |
70 | repeat(10000000) |
71 | print("stuff1","stuff2"); |
72 | } |
73 | Compiling...0:00.10 total, 0.07 user, 0.02 sys, 0 KB average size |
74 | Running...0:01.92 total, 1.92 user, 0.00 sys, 0 KB average size |
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 | } |
283bc497 |
90 | Compiling...0:00.08 total, 0.04 user, 0.02 sys, 0 KB average size |
91 | Running...0:01.53 total, 1.50 user, 0.00 sys, 0 KB average size |
92 | |