commit e58a7c2b8a0faa0c261a3b7fefe626186362abd9
parent 09d79a013603878607b5b094346040ecfc8264b6
Author: Remy Noulin (Spartatek) <remy.noulin@spartatek.se>
Date: Mon, 5 Dec 2016 14:16:51 +0100
add test nodejs startup time
nodejs 6.9.1
Nodejs takes 100ms to start.
cd nodeStartupSpeed/
./nodeTest.sh
Started
real 0m0.106s
user 0m0.096s
sys 0m0.008s
./cTest.sh
Started
real 0m0.004s
user 0m0.000s
sys 0m0.000s
nodeStartupSpeed/cTest.c | 5 +++++
nodeStartupSpeed/cTest.sh | 1 +
nodeStartupSpeed/nodeTest.sh | 1 +
3 files changed, 7 insertions(+)
Diffstat:
3 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/nodeStartupSpeed/cTest.c b/nodeStartupSpeed/cTest.c
@@ -0,0 +1,5 @@
+#include <stdio.h>
+
+void main() {
+ printf("Started");
+}
diff --git a/nodeStartupSpeed/cTest.sh b/nodeStartupSpeed/cTest.sh
@@ -0,0 +1 @@
+time tcc -run cTest.c
diff --git a/nodeStartupSpeed/nodeTest.sh b/nodeStartupSpeed/nodeTest.sh
@@ -0,0 +1 @@
+time node -e "console.log('Started')"