b836e242 |
1 | #!/usr/bin/python |
81088cec |
2 | |
3 | for i in range(1,10000000): |
4 | print "stuff" |
5 | |
6 | Running... |
cc0de701 |
7 | 8.45user 0.16system 0:08.67elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k |
8 | 0inputs+0outputs (0major+39997minor)pagefaults 0swaps |
d8394559 |
9 | #include <iostream> |
10 | |
11 | #define RUNS 10000000UL |
12 | int main() |
13 | { |
14 | unsigned long i; |
15 | for (i=0;i<RUNS;i++) { |
16 | std::cout << "stuff" << std::endl; |
17 | } |
18 | return 0; |
19 | } |
20 | Compiling... |
cc0de701 |
21 | 0.32user 0.06system 0:00.47elapsed 81%CPU (0avgtext+0avgdata 0maxresident)k |
22 | 0inputs+0outputs (7major+8814minor)pagefaults 0swaps |
d8394559 |
23 | Running... |
cc0de701 |
24 | 3.54user 2.18system 0:05.73elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k |
d8394559 |
25 | 0inputs+0outputs (0major+241minor)pagefaults 0swaps |
81088cec |
26 | #!/usr/bin/perl |
27 | |
28 | my $i=0; |
29 | for ($i=0;$i<10000000;$i++) |
30 | { |
31 | print ("stuff"); |
32 | } |
33 | |
34 | Running... |
cc0de701 |
35 | 2.51user 0.01system 0:02.52elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k |
36 | 0inputs+0outputs (0major+425minor)pagefaults 0swaps |
81088cec |
37 | #include "cll1.h" |
38 | |
39 | program |
40 | { |
41 | repeat(10000000) |
42 | print("stuff"); |
43 | } |
44 | Compiling... |
cc0de701 |
45 | 0.12user 0.01system 0:00.30elapsed 42%CPU (0avgtext+0avgdata 0maxresident)k |
46 | 0inputs+0outputs (17major+3993minor)pagefaults 0swaps |
81088cec |
47 | Running... |
cc0de701 |
48 | 0.87user 0.00system 0:00.87elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k |
b836e242 |
49 | 0inputs+0outputs (0major+130minor)pagefaults 0swaps |
81088cec |
50 | #include <stdio.h> |
51 | |
52 | #define RUNS 10000000UL |
53 | int main (void) |
54 | { |
55 | unsigned long i; |
56 | for (i=0;i<RUNS;i++) { |
57 | printf("stuff\n"); |
58 | } |
59 | return 0; |
60 | } |
61 | Compiling... |
cc0de701 |
62 | 0.03user 0.02system 0:00.05elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k |
63 | 0inputs+0outputs (0major+3783minor)pagefaults 0swaps |
81088cec |
64 | Running... |
cc0de701 |
65 | 0.62user 0.00system 0:00.63elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k |
66 | 0inputs+0outputs (0major+115minor)pagefaults 0swaps |
81088cec |
67 | #include <stdio.h> |
68 | |
69 | #define RUNS 10000000UL |
70 | int main (void) |
71 | { |
72 | unsigned long i; |
73 | for (i=0;i<RUNS;i++) { |
74 | puts("stuff"); |
75 | } |
76 | return 0; |
77 | } |
78 | Compiling... |
cc0de701 |
79 | 0.05user 0.00system 0:00.05elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k |
80 | 0inputs+0outputs (0major+3780minor)pagefaults 0swaps |
81088cec |
81 | Running... |
cc0de701 |
82 | 0.62user 0.00system 0:00.63elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k |
d8394559 |
83 | 0inputs+0outputs (0major+114minor)pagefaults 0swaps |
81088cec |
84 | #include <stdio.h> |
85 | |
86 | #define RUNS 10000000UL |
87 | int main (void) |
88 | { |
89 | unsigned long i; |
90 | for (i=0;i<RUNS;i++) { |
91 | fputs("stuff\n",stdout); |
92 | } |
93 | return 0; |
94 | } |
95 | Compiling... |
d8394559 |
96 | 0.04user 0.01system 0:00.05elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k |
cc0de701 |
97 | 0inputs+0outputs (0major+3787minor)pagefaults 0swaps |
81088cec |
98 | Running... |
cc0de701 |
99 | 0.54user 0.00system 0:00.53elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k |
100 | 0inputs+0outputs (0major+114minor)pagefaults 0swaps |