ruby performance test added
[svn/Cll1h/.git] / demos / performance / test-results2
CommitLineData
b836e242 1#!/usr/bin/python
81088cec 2
3for i in range(1,10000000):
4 print "stuff1","stuff2"
5
6Running...
b84246fd 713.76user 0.19system 0:13.98elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
cc0de701 80inputs+0outputs (0major+39997minor)pagefaults 0swaps
b84246fd 9#!/usr/bin/ruby
10
1110000000.times { print "stuff1"," ","stuff2","\n" }
12Running...
1323.17user 1.58system 0:24.78elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
140inputs+0outputs (0major+457minor)pagefaults 0swaps
d8394559 15#include <iostream>
16
17#define RUNS 10000000UL
18int main()
19{
20 unsigned long i;
21 for (i=0;i<RUNS;i++) {
22 std::cout << "stuff1" << " " << "stuff2" << std::endl;
23 }
24 return 0;
25}
26Compiling...
b84246fd 270.34user 0.04system 0:00.39elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
cc0de701 280inputs+0outputs (0major+8824minor)pagefaults 0swaps
d8394559 29Running...
b84246fd 306.14user 1.98system 0:08.12elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
310inputs+0outputs (0major+240minor)pagefaults 0swaps
81088cec 32#!/usr/bin/perl
33
34my $i=0;
35for ($i=0;$i<10000000;$i++)
36{
37 print ("stuff1"," ","stuff2","\n");
38}
39Running...
b84246fd 405.68user 0.01system 0:05.71elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
410inputs+0outputs (0major+426minor)pagefaults 0swaps
81088cec 42#include "cll1.h"
43
44program
45{
46 repeat(10000000)
47 print("stuff1","stuff2");
48}
49Compiling...
b84246fd 500.07user 0.02system 0:00.10elapsed 102%CPU (0avgtext+0avgdata 0maxresident)k
510inputs+0outputs (0major+4011minor)pagefaults 0swaps
81088cec 52Running...
b84246fd 531.72user 0.00system 0:01.73elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
d8394559 540inputs+0outputs (0major+130minor)pagefaults 0swaps
81088cec 55#include <stdio.h>
56
57#define RUNS 10000000UL
58int main (void)
59{
60 unsigned long i;
61 for (i=0;i<RUNS;i++) {
62 printf("%s %s\n","stuff2","stuff2");
63 }
64 return 0;
65}
66Compiling...
b84246fd 670.04user 0.01system 0:00.06elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
cc0de701 680inputs+0outputs (0major+3782minor)pagefaults 0swaps
81088cec 69Running...
b84246fd 702.99user 0.00system 0:03.00elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
710inputs+0outputs (0major+121minor)pagefaults 0swaps
81088cec 72#include <stdio.h>
73
74#define RUNS 10000000UL
75int main (void)
76{
77 unsigned long i;
78 for (i=0;i<RUNS;i++) {
79 fputs("stuff1",stdout);
80 fputs(" ",stdout);
81 fputs("stuff2",stdout);
82 fputs("\n",stdout);
83 }
84 return 0;
85}
86Compiling...
b84246fd 870.06user 0.00system 0:00.06elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
880inputs+0outputs (0major+3792minor)pagefaults 0swaps
81088cec 89Running...
b84246fd 901.46user 0.01system 0:01.47elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
910inputs+0outputs (0major+116minor)pagefaults 0swaps
This page took 0.154465 seconds and 4 git commands to generate.