Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Oct 26, 2024
1 parent 5216bc1 commit c544195
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest, macos-latest'
os: 'ubuntu-latest'
version: '14, 16, 18, 20, 22, 23'
install: npm run install-wrk && npm install && cat /proc/cpuinfo
install: npm run install-wrk > wrk.log && npm install && cat /proc/cpuinfo
38 changes: 19 additions & 19 deletions simple/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,66 +26,66 @@ function print_head {
printf "\"$TITLE\"," >> $CSV
}

sleep 3
echo ""
echo "------- koa hello -------"
echo "------- egg3 hello -------"
echo ""
print_head "koa" "koa hello"
wrk 'http://127.0.0.1:7002/' \
print_head "egg3" "egg3 hello"
wrk 'http://127.0.0.1:7005/' \
-d 10 \
-c 50 \
-t 8 \
-s $REPORT

sleep 3
echo ""
echo "------- egg1 hello -------"
echo "------- egg3 hello with reusePort=true -------"
echo ""
print_head "egg1" "egg1 hello"
wrk 'http://127.0.0.1:7003/' \
print_head "egg3" "egg3 hello with reusePort=true"
wrk 'http://127.0.0.1:7008/' \
-d 10 \
-c 50 \
-t 8 \
-s $REPORT

sleep 3
echo ""
echo "------- egg2 hello -------"
echo "------- egg3 hello with worker_threads=1 -------"
echo ""
print_head "egg2" "egg2 hello"
wrk 'http://127.0.0.1:7004/' \
print_head "egg3" "egg3 hello with worker_threads=1"
wrk 'http://127.0.0.1:7006/' \
-d 10 \
-c 50 \
-t 8 \
-s $REPORT

sleep 3
echo ""
echo "------- egg3 hello -------"
echo "------- koa hello -------"
echo ""
print_head "egg3" "egg3 hello"
wrk 'http://127.0.0.1:7005/' \
print_head "koa" "koa hello"
wrk 'http://127.0.0.1:7002/' \
-d 10 \
-c 50 \
-t 8 \
-s $REPORT

sleep 3
echo ""
echo "------- egg3 hello with reusePort=true -------"
echo "------- egg1 hello -------"
echo ""
print_head "egg3" "egg3 hello with reusePort=true"
wrk 'http://127.0.0.1:7008/' \
print_head "egg1" "egg1 hello"
wrk 'http://127.0.0.1:7003/' \
-d 10 \
-c 50 \
-t 8 \
-s $REPORT

sleep 3
echo ""
echo "------- egg3 hello with worker_threads=1 -------"
echo "------- egg2 hello -------"
echo ""
print_head "egg3" "egg3 hello with worker_threads=1"
wrk 'http://127.0.0.1:7006/' \
print_head "egg2" "egg2 hello"
wrk 'http://127.0.0.1:7004/' \
-d 10 \
-c 50 \
-t 8 \
Expand Down

0 comments on commit c544195

Please sign in to comment.