update performance test
[svn/Cll1h/.git] / demos / performance / test-results
CommitLineData
b84246fd 1#!/usr/bin/ruby
2
310000000.times { print "stuff","\n" }
67db9ef1 4Running...0:16.24 total, 14.59 user, 1.63 sys, 0 outputs
283bc497 5
b836e242 6#!/usr/bin/python
81088cec 7
8for i in range(1,10000000):
9 print "stuff"
10
67db9ef1 11Running...0:08.79 total, 8.57 user, 0.14 sys, 0 outputs
283bc497 12
72c9d7a0 13#!/usr/bin/python
14
15for i in xrange(1,10000000):
16 print "stuff"
17
67db9ef1 18Running...0:08.34 total, 8.22 user, 0.01 sys, 0 outputs
283bc497 19
ba41861f 20#!/usr/bin/php5 -q
21<?php
22for ( $i=0; $i<10000000; $i++ )
23{
24 echo "stuff1\n";
25}
26?>
67db9ef1 27Running...0:07.05 total, 4.83 user, 2.10 sys, 0 outputs
283bc497 28
67db9ef1 29#include <string.h>
30
31#define RUNS 10000000UL
32int main (void)
33{
34 unsigned long i;
35 char *s1="stuff\n";
36 int l1=strlen(s1);
37
38for (i=0;i<RUNS;i++)
39{
40 write(1,s1,l1);
41}
42return 0;
43}
44Compiling...0:00.06 total, 0.05 user, 0.00 sys, 0 outputs
45Running...0:02.93 total, 0.86 user, 2.06 sys, 0 outputs
ba41861f 46#!/usr/bin/perl
47
48my $i=0;
49for ($i=0;$i<10000000;$i++)
50{
51 print ("stuff");
52}
53
67db9ef1 54Running...0:02.60 total, 2.57 user, 0.01 sys, 0 outputs
283bc497 55
d8394559 56#include <iostream>
57
58#define RUNS 10000000UL
59int main()
60{
61 unsigned long i;
62 for (i=0;i<RUNS;i++) {
7150dd0b 63 std::cout << "stuff\n";
d8394559 64 }
65 return 0;
66}
67db9ef1 67Compiling...0:00.39 total, 0.34 user, 0.05 sys, 0 outputs
68Running...0:01.02 total, 0.98 user, 0.01 sys, 0 outputs
283bc497 69
81088cec 70#include "cll1.h"
71
72program
73{
74 repeat(10000000)
75 print("stuff");
76}
67db9ef1 77Compiling...0:00.13 total, 0.12 user, 0.01 sys, 0 outputs
78Running...0:01.25 total, 1.23 user, 0.00 sys, 0 outputs
283bc497 79
81088cec 80#include <stdio.h>
81
82#define RUNS 10000000UL
83int main (void)
84{
85unsigned long i;
86for (i=0;i<RUNS;i++) {
87printf("stuff\n");
88}
89return 0;
90}
67db9ef1 91Compiling...0:00.06 total, 0.04 user, 0.01 sys, 0 outputs
92Running...0:00.62 total, 0.60 user, 0.00 sys, 0 outputs
283bc497 93
81088cec 94#include <stdio.h>
95
96#define RUNS 10000000UL
97int main (void)
98{
99unsigned long i;
100for (i=0;i<RUNS;i++) {
101puts("stuff");
102}
103return 0;
104}
67db9ef1 105Compiling...0:00.06 total, 0.05 user, 0.00 sys, 0 outputs
106Running...0:00.63 total, 0.63 user, 0.00 sys, 0 outputs
283bc497 107
This page took 0.193848 seconds and 4 git commands to generate.