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