changeset 8:98401a6717fc

updated performance.txt
author meillo@marmaro.de
date Sat, 09 Jun 2007 00:12:14 +0200
parents ccd2ab1bc9fd
children 79af6ba23e46
files performance.txt
diffstat 1 files changed, 24 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/performance.txt	Sat Jun 09 00:07:04 2007 +0200
+++ b/performance.txt	Sat Jun 09 00:12:14 2007 +0200
@@ -1,29 +1,42 @@
 SLOCCOUNT
 
 cpp:            125
-sh:              33
+sh:              52
+sed:             52
 
 
 
 
 SIZE
 
-14K     graph*
-1.2K    graph2.sh*
+14K     graph*       (cpp)
+1.8K    graph2.sh*   (sh)
+1.8K    graph3.sh*   (sed)
 
 
 
 
 PERFORMANCE
 
-$ time ./graph input.txt > graph1.dot
+C++
 
-real    0m0.074s
-user    0m0.044s
-sys     0m0.008s
+$ time ./graph input.txt > output.txt
+  real    0m0.041s
+  user    0m0.040s
+  sys     0m0.000s
+
+
+sh
 
-$ time ./graph2.sh input.txt > graph2.dot
+$ time ./graph2.sh input.txt > output.txt
+  real    0m20.611s
+  user    0m5.332s
+  sys     0m14.357s
+
 
-real    0m38.405s
-user    0m13.861s
-sys     0m23.349s
+sed
+
+$ time ./graph3.sh input.txt > output.txt
+  real    0m0.195s
+  user    0m0.168s
+  sys     0m0.016s