TRUE, FALSE and MAYBE
[svn/Cll1h/.git] / demos / performance / test-results2
1 #!/usr/bin/ruby
2
3 10000000.times { print "stuff1"," ","stuff2","\n" }
4 Running...0:25.02 total, 23.30 user, 1.58 sys
5
6 #!/usr/bin/python
7
8 for i in range(1,10000000):
9 print "stuff1","stuff2"
10
11 Running...0:13.46 total, 13.27 user, 0.18 sys
12
13 #!/usr/bin/python
14
15 for i in xrange(1,10000000):
16 print "stuff1","stuff2"
17
18 Running...0:12.92 total, 12.89 user, 0.01 sys
19
20 #!/usr/bin/php5 -q
21 <?php
22 for ( $i=0; $i<10000000; $i++ )
23 {
24 echo "stuff1"." "."stuff2"."\n";
25 }
26 ?>
27 Running...0:11.38 total, 9.38 user, 2.00 sys
28
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 }
40 Compiling...0:00.36 total, 0.32 user, 0.04 sys
41 Running...0:08.22 total, 6.07 user, 2.03 sys
42
43 #!/usr/bin/perl
44
45 my $i=0;
46 for ($i=0;$i<10000000;$i++)
47 {
48 print ("stuff1"," ","stuff2","\n");
49 }
50 Running...0:05.74 total, 5.73 user, 0.00 sys
51
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 }
63 Compiling...0:00.05 total, 0.02 user, 0.02 sys
64 Running...0:02.85 total, 2.84 user, 0.01 sys
65
66 #include "cll1.h"
67
68 program
69 {
70 repeat(10000000)
71 print("stuff1","stuff2");
72 }
73 Compiling...0:00.09 total, 0.07 user, 0.02 sys
74 Running...0:01.94 total, 1.92 user, 0.01 sys
75
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 }
90 Compiling...0:00.14 total, 0.04 user, 0.01 sys
91 Running...0:01.56 total, 1.53 user, 0.01 sys
92
This page took 0.332365 seconds and 4 git commands to generate.