GIT.Harvie.CZ
/
svn
/
Cll1h
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update performance test
[svn/Cll1h/.git]
/
demos
/
performance
/
test-results
diff --git
a/demos/performance/test-results
b/demos/performance/test-results
index 2ccb4009540a35baa62544a8a8a34eeed5206a8c..0f94f3049caeaee604d48dda021c625d1b5ec590 100644
(file)
--- a/
demos/performance/test-results
+++ b/
demos/performance/test-results
@@
-1,21
+1,21
@@
#!/usr/bin/ruby
10000000.times { print "stuff","\n" }
#!/usr/bin/ruby
10000000.times { print "stuff","\n" }
-Running...0:16.
66 total, 14.64 user, 1.70 sy
s
+Running...0:16.
24 total, 14.59 user, 1.63 sys, 0 output
s
#!/usr/bin/python
for i in range(1,10000000):
print "stuff"
#!/usr/bin/python
for i in range(1,10000000):
print "stuff"
-Running...0:0
9.24 total, 8.48 user, 0.15 sy
s
+Running...0:0
8.79 total, 8.57 user, 0.14 sys, 0 output
s
#!/usr/bin/python
for i in xrange(1,10000000):
print "stuff"
#!/usr/bin/python
for i in xrange(1,10000000):
print "stuff"
-Running...0:08.3
1 total, 8.14 user, 0.01 sy
s
+Running...0:08.3
4 total, 8.22 user, 0.01 sys, 0 output
s
#!/usr/bin/php5 -q
<?php
#!/usr/bin/php5 -q
<?php
@@
-24,8
+24,25
@@
for ( $i=0; $i<10000000; $i++ )
echo "stuff1\n";
}
?>
echo "stuff1\n";
}
?>
-Running...0:07.
30 total, 4.92 user, 2.09 sy
s
+Running...0:07.
05 total, 4.83 user, 2.10 sys, 0 output
s
+#include <string.h>
+
+#define RUNS 10000000UL
+int main (void)
+{
+ unsigned long i;
+ char *s1="stuff\n";
+ int l1=strlen(s1);
+
+for (i=0;i<RUNS;i++)
+{
+ write(1,s1,l1);
+}
+return 0;
+}
+Compiling...0:00.06 total, 0.05 user, 0.00 sys, 0 outputs
+Running...0:02.93 total, 0.86 user, 2.06 sys, 0 outputs
#!/usr/bin/perl
my $i=0;
#!/usr/bin/perl
my $i=0;
@@
-34,7
+51,7
@@
for ($i=0;$i<10000000;$i++)
print ("stuff");
}
print ("stuff");
}
-Running...0:02.
48 total, 2.48 user, 0.00 sy
s
+Running...0:02.
60 total, 2.57 user, 0.01 sys, 0 output
s
#include <iostream>
#include <iostream>
@@
-47,8
+64,8
@@
int main()
}
return 0;
}
}
return 0;
}
-Compiling...0:00.3
7 total, 0.33 user, 0.04 sy
s
-Running...0:01.
10 total, 1.05 user, 0.00 sy
s
+Compiling...0:00.3
9 total, 0.34 user, 0.05 sys, 0 output
s
+Running...0:01.
02 total, 0.98 user, 0.01 sys, 0 output
s
#include "cll1.h"
#include "cll1.h"
@@
-57,8
+74,8
@@
program
repeat(10000000)
print("stuff");
}
repeat(10000000)
print("stuff");
}
-Compiling...0:00.
09 total, 0.08 user, 0.01 sy
s
-Running...0:0
0.98 total, 0.91 user, 0.00 sy
s
+Compiling...0:00.
13 total, 0.12 user, 0.01 sys, 0 output
s
+Running...0:0
1.25 total, 1.23 user, 0.00 sys, 0 output
s
#include <stdio.h>
#include <stdio.h>
@@
-71,8
+88,8
@@
printf("stuff\n");
}
return 0;
}
}
return 0;
}
-Compiling...0:00.0
7 total, 0.06 user, 0.01 sy
s
-Running...0:00.62 total, 0.6
2 user, 0.00 sy
s
+Compiling...0:00.0
6 total, 0.04 user, 0.01 sys, 0 output
s
+Running...0:00.62 total, 0.6
0 user, 0.00 sys, 0 output
s
#include <stdio.h>
#include <stdio.h>
@@
-85,19
+102,6
@@
puts("stuff");
}
return 0;
}
}
return 0;
}
-Compiling...0:00.06 total, 0.0
4 user, 0.01 sy
s
-Running...0:00.6
5 total, 0.62 user, 0.00 sy
s
+Compiling...0:00.06 total, 0.0
5 user, 0.00 sys, 0 output
s
+Running...0:00.6
3 total, 0.63 user, 0.00 sys, 0 output
s
-#include <stdio.h>
-
-#define RUNS 10000000UL
-int main (void)
-{
-unsigned long i;
-for (i=0;i<RUNS;i++) {
-fputs("stuff\n",stdout);
-}
-return 0;
-}
-Compiling...0:00.06 total, 0.05 user, 0.00 sys
-Running...0:00.55 total, 0.55 user, 0.00 sys
This page took
0.163873 seconds
and
4
git commands to generate.