diff performance.txt @ 16:dbaa8a943271 default tip

merge
author ju
date Thu, 05 Jul 2007 18:13:01 +0200
parents 98401a6717fc
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/performance.txt	Thu Jul 05 18:13:01 2007 +0200
@@ -0,0 +1,42 @@
+SLOCCOUNT
+
+cpp:            125
+sh:              52
+sed:             52
+
+
+
+
+SIZE
+
+14K     graph*       (cpp)
+1.8K    graph2.sh*   (sh)
+1.8K    graph3.sh*   (sed)
+
+
+
+
+PERFORMANCE
+
+C++
+
+$ time ./graph input.txt > output.txt
+  real    0m0.041s
+  user    0m0.040s
+  sys     0m0.000s
+
+
+sh
+
+$ time ./graph2.sh input.txt > output.txt
+  real    0m20.611s
+  user    0m5.332s
+  sys     0m14.357s
+
+
+sed
+
+$ time ./graph3.sh input.txt > output.txt
+  real    0m0.195s
+  user    0m0.168s
+  sys     0m0.016s