updated: performance tests compiled with -O4 (even better results for C<<1 !)
[svn/Cll1h/.git] / demos / performance / test-results
CommitLineData
b836e242 1#!/usr/bin/python
81088cec 2
3for i in range(1,10000000):
4 print "stuff"
5
6Running...
cc0de701 78.45user 0.16system 0:08.67elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
80inputs+0outputs (0major+39997minor)pagefaults 0swaps
d8394559 9#include <iostream>
10
11#define RUNS 10000000UL
12int main()
13{
14 unsigned long i;
15 for (i=0;i<RUNS;i++) {
16 std::cout << "stuff" << std::endl;
17 }
18 return 0;
19}
20Compiling...
cc0de701 210.32user 0.06system 0:00.47elapsed 81%CPU (0avgtext+0avgdata 0maxresident)k
220inputs+0outputs (7major+8814minor)pagefaults 0swaps
d8394559 23Running...
cc0de701 243.54user 2.18system 0:05.73elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
d8394559 250inputs+0outputs (0major+241minor)pagefaults 0swaps
81088cec 26#!/usr/bin/perl
27
28my $i=0;
29for ($i=0;$i<10000000;$i++)
30{
31 print ("stuff");
32}
33
34Running...
cc0de701 352.51user 0.01system 0:02.52elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
360inputs+0outputs (0major+425minor)pagefaults 0swaps
81088cec 37#include "cll1.h"
38
39program
40{
41 repeat(10000000)
42 print("stuff");
43}
44Compiling...
cc0de701 450.12user 0.01system 0:00.30elapsed 42%CPU (0avgtext+0avgdata 0maxresident)k
460inputs+0outputs (17major+3993minor)pagefaults 0swaps
81088cec 47Running...
cc0de701 480.87user 0.00system 0:00.87elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
b836e242 490inputs+0outputs (0major+130minor)pagefaults 0swaps
81088cec 50#include <stdio.h>
51
52#define RUNS 10000000UL
53int main (void)
54{
55unsigned long i;
56for (i=0;i<RUNS;i++) {
57printf("stuff\n");
58}
59return 0;
60}
61Compiling...
cc0de701 620.03user 0.02system 0:00.05elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
630inputs+0outputs (0major+3783minor)pagefaults 0swaps
81088cec 64Running...
cc0de701 650.62user 0.00system 0:00.63elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
660inputs+0outputs (0major+115minor)pagefaults 0swaps
81088cec 67#include <stdio.h>
68
69#define RUNS 10000000UL
70int main (void)
71{
72unsigned long i;
73for (i=0;i<RUNS;i++) {
74puts("stuff");
75}
76return 0;
77}
78Compiling...
cc0de701 790.05user 0.00system 0:00.05elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k
800inputs+0outputs (0major+3780minor)pagefaults 0swaps
81088cec 81Running...
cc0de701 820.62user 0.00system 0:00.63elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
d8394559 830inputs+0outputs (0major+114minor)pagefaults 0swaps
81088cec 84#include <stdio.h>
85
86#define RUNS 10000000UL
87int main (void)
88{
89unsigned long i;
90for (i=0;i<RUNS;i++) {
91fputs("stuff\n",stdout);
92}
93return 0;
94}
95Compiling...
d8394559 960.04user 0.01system 0:00.05elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k
cc0de701 970inputs+0outputs (0major+3787minor)pagefaults 0swaps
81088cec 98Running...
cc0de701 990.54user 0.00system 0:00.53elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
1000inputs+0outputs (0major+114minor)pagefaults 0swaps
This page took 0.203691 seconds and 4 git commands to generate.