update performance test
[svn/Cll1h/.git] / demos / performance / test-results2
CommitLineData
c3eef81f 1#!/usr/bin/ruby
2
310000000.times { print "stuff1"," ","stuff2","\n" }
67db9ef1 4Running...0:24.57 total, 23.03 user, 1.51 sys, 0 outputs
283bc497 5
b836e242 6#!/usr/bin/python
81088cec 7
8for i in range(1,10000000):
9 print "stuff1","stuff2"
10
67db9ef1 11Running...0:13.80 total, 13.53 user, 0.17 sys, 0 outputs
283bc497 12
72c9d7a0 13#!/usr/bin/python
14
15for i in xrange(1,10000000):
16 print "stuff1","stuff2"
17
67db9ef1 18Running...0:13.43 total, 13.20 user, 0.02 sys, 0 outputs
283bc497 19
ba41861f 20#!/usr/bin/php5 -q
21<?php
22for ( $i=0; $i<10000000; $i++ )
23{
24 echo "stuff1"." "."stuff2"."\n";
25}
26?>
67db9ef1 27Running...0:11.93 total, 9.84 user, 2.08 sys, 0 outputs
28
29#include <stdio.h>
30#include <string.h>
31
32#define RUNS 10000000UL
33int main (void)
34{
35 unsigned long i;
36 char *s1="stuff1";
37 char *s2="stuff2";
38 int l1=strlen(s1);
39 int l2=strlen(s2);
40
41 for (i=0;i<RUNS;i++)
42 {
43 write(1,s1,l1);
44 write(1," ",1);
45 write(1,s2,l2);
46 write(1,"\n",1);
47 }
48 return 0;
49}
50Compiling...0:00.07 total, 0.06 user, 0.00 sys, 0 outputs
51Running...0:11.92 total, 3.78 user, 7.86 sys, 0 outputs
283bc497 52
d8394559 53#include <iostream>
54
55#define RUNS 10000000UL
56int main()
57{
58 unsigned long i;
59 for (i=0;i<RUNS;i++) {
60 std::cout << "stuff1" << " " << "stuff2" << std::endl;
61 }
62 return 0;
63}
67db9ef1 64Compiling...0:00.38 total, 0.33 user, 0.05 sys, 0 outputs
65Running...0:08.22 total, 6.18 user, 2.01 sys, 0 outputs
283bc497 66
81088cec 67#!/usr/bin/perl
68
69my $i=0;
70for ($i=0;$i<10000000;$i++)
71{
72 print ("stuff1"," ","stuff2","\n");
73}
67db9ef1 74Running...0:05.97 total, 5.96 user, 0.00 sys, 0 outputs
81088cec 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 printf("%s %s\n","stuff2","stuff2");
84 }
85 return 0;
86}
67db9ef1 87Compiling...0:00.06 total, 0.05 user, 0.00 sys, 0 outputs
88Running...0:02.87 total, 2.84 user, 0.01 sys, 0 outputs
283bc497 89
90#include "cll1.h"
91
92program
93{
94 repeat(10000000)
95 print("stuff1","stuff2");
96}
67db9ef1 97Compiling...0:00.14 total, 0.12 user, 0.00 sys, 0 outputs
98Running...0:02.77 total, 2.76 user, 0.00 sys, 0 outputs
283bc497 99
81088cec 100#include <stdio.h>
101
102#define RUNS 10000000UL
103int main (void)
104{
105 unsigned long i;
106 for (i=0;i<RUNS;i++) {
107 fputs("stuff1",stdout);
108 fputs(" ",stdout);
109 fputs("stuff2",stdout);
110 fputs("\n",stdout);
111 }
112 return 0;
113}
67db9ef1 114Compiling...0:00.07 total, 0.04 user, 0.02 sys, 0 outputs
115Running...0:01.52 total, 1.52 user, 0.00 sys, 0 outputs
283bc497 116
This page took 0.234448 seconds and 4 git commands to generate.