summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorYosuke Furukawa <yosuke.furukawa@gmail.com>2015-01-15 01:46:28 +0900
committerBen Noordhuis <info@bnoordhuis.nl>2015-01-14 02:29:59 +0100
commit182c3b689caed1bab1c72f438a81c9fb6ca61c44 (patch)
treee72c7ee0a86581f1427b54b1c9dbe41c1fcc1afb /benchmark
parenta7f530964b1c4430d0be7e3796700a0f81068dc5 (diff)
downloadandroid-node-v8-182c3b689caed1bab1c72f438a81c9fb6ca61c44.tar.gz
android-node-v8-182c3b689caed1bab1c72f438a81c9fb6ca61c44.tar.bz2
android-node-v8-182c3b689caed1bab1c72f438a81c9fb6ca61c44.zip
benchmark: fix command name in benchmark scripts
PR-URL: https://github.com/iojs/io.js/pull/410 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/README.md8
-rw-r--r--benchmark/common.js2
-rw-r--r--benchmark/http-flamegraph.sh6
-rwxr-xr-xbenchmark/http.sh2
-rwxr-xr-xbenchmark/http_simple_bench.sh2
-rwxr-xr-xbenchmark/plot.R2
6 files changed, 11 insertions, 11 deletions
diff --git a/benchmark/README.md b/benchmark/README.md
index 695f0eac7f..95ade9840d 100644
--- a/benchmark/README.md
+++ b/benchmark/README.md
@@ -1,7 +1,7 @@
-# Node.js core benchmark tests
+# io.js core benchmark tests
This folder contains benchmark tests to measure the performance for certain
-Node.js APIs.
+io.js APIs.
## How to run tests
@@ -10,7 +10,7 @@ There are two ways to run benchmark tests:
1. Run all tests of a given type, for example, buffers
```sh
-node benchmark/common.js buffers
+iojs benchmark/common.js buffers
```
The above command will find all scripts under `buffers` directory and require
@@ -70,7 +70,7 @@ buffers/buffer-read.js noAssert=false buffer=fast type=UInt16BE millions=1: 244.
2. Run an individual test, for example, buffer-slice.js
```sh
-node benchmark/buffers/buffer-read.js
+iojs benchmark/buffers/buffer-read.js
```
The output:
```
diff --git a/benchmark/common.js b/benchmark/common.js
index 7d1730c373..825bfb43f0 100644
--- a/benchmark/common.js
+++ b/benchmark/common.js
@@ -8,7 +8,7 @@ exports.PORT = process.env.PORT || 12346;
if (module === require.main) {
var type = process.argv[2];
if (!type) {
- console.error('usage:\n ./node benchmark/common.js <type>');
+ console.error('usage:\n ./iojs benchmark/common.js <type>');
process.exit(1);
}
diff --git a/benchmark/http-flamegraph.sh b/benchmark/http-flamegraph.sh
index 7df0c1575f..5dc41b541b 100644
--- a/benchmark/http-flamegraph.sh
+++ b/benchmark/http-flamegraph.sh
@@ -1,7 +1,7 @@
#!/bin/bash
cd "$(dirname "$(dirname $0)")"
-node=${NODE:-./node}
+node=${NODE:-./iojs}
name=${NAME:-stacks}
@@ -22,7 +22,7 @@ fi
ulimit -n 100000
$node benchmark/http_simple.js &
nodepid=$!
-echo "node pid = $nodepid"
+echo "iojs pid = $nodepid"
sleep 1
# has to stay alive until dtrace exits
@@ -62,7 +62,7 @@ echo 'Turn the stacks into a svg'
stackvis dtrace flamegraph-svg < "$name".src > "$name".raw.svg
echo 'Prune tiny stacks out of the graph'
-node -e '
+iojs -e '
var infile = process.argv[1];
var outfile = process.argv[2];
var output = "";
diff --git a/benchmark/http.sh b/benchmark/http.sh
index 9a844a9004..63fc02e973 100755
--- a/benchmark/http.sh
+++ b/benchmark/http.sh
@@ -24,7 +24,7 @@ if [ "$k" = "no" ]; then
else
k="-k"
fi
-node=${NODE:-./node}
+node=${NODE:-./iojs}
$node benchmark/http_simple.js &
npid=$!
diff --git a/benchmark/http_simple_bench.sh b/benchmark/http_simple_bench.sh
index 6948227974..2066047b9e 100755
--- a/benchmark/http_simple_bench.sh
+++ b/benchmark/http_simple_bench.sh
@@ -14,7 +14,7 @@ if [ ! -d benchmark/ ]; then
fi
if [ $SERVER == "127.0.0.1" ]; then
- ./node benchmark/http_simple.js &
+ ./iojs benchmark/http_simple.js &
node_pid=$!
sleep 1
fi
diff --git a/benchmark/plot.R b/benchmark/plot.R
index 1f902eddfe..288e8bd5a4 100755
--- a/benchmark/plot.R
+++ b/benchmark/plot.R
@@ -52,7 +52,7 @@ ab.load <- function (filename, name) {
filename <- args[0:1]
-data <- ab.load(filename, "node")
+data <- ab.load(filename, "iojs")
# histogram