aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-24 15:52:45 +0100
committerChocobozzz <me@florianbigard.com>2021-11-24 15:52:45 +0100
commit0c5639f4f3ef96d8837bfb4682e945274d842a2c (patch)
treefdc54b6b4a76fca4a921ae87bfbca9efd326d8e5 /.github
parent4ce5f50cd3712619419feda42ecacfd751759fa4 (diff)
downloadPeerTube-0c5639f4f3ef96d8837bfb4682e945274d842a2c.tar.gz
PeerTube-0c5639f4f3ef96d8837bfb4682e945274d842a2c.tar.zst
PeerTube-0c5639f4f3ef96d8837bfb4682e945274d842a2c.zip
More precise startup benchmark
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/benchmark.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index 171b76ebf..86f675432 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -90,15 +90,15 @@ jobs:
90 run: | 90 run: |
91 npm run clean:server:test 91 npm run clean:server:test
92 92
93 startCold=`date +%s` 93 startCold=`date +%s%3N`
94 NODE_APP_INSTANCE=1 NODE_ENV=test node dist/server --benchmark-startup 94 NODE_APP_INSTANCE=1 NODE_ENV=test node dist/server --benchmark-startup
95 endCold=`date +%s` 95 endCold=`date +%s%3N`
96 coldStartupTime=$((endCold-startCold)) 96 coldStartupTime=$(echo "scale=2; ($endCold-$startCold)/1000" | bc)
97 97
98 startHot=`date +%s` 98 startHot=`date +%s%3N`
99 NODE_APP_INSTANCE=1 NODE_ENV=test node dist/server --benchmark-startup 99 NODE_APP_INSTANCE=1 NODE_ENV=test node dist/server --benchmark-startup
100 endHot=`date +%s` 100 endHot=`date +%s%3N`
101 hotStartupTime=$((endHot-startHot)) 101 hotStartupTime=$(echo "scale=2; ($endHot-$startHot)/1000" | bc)
102 102
103 echo '{"coldStartupTime":'$coldStartupTime',"hotStartupTime":'$hotStartupTime'}'> startup-time.json 103 echo '{"coldStartupTime":'$coldStartupTime',"hotStartupTime":'$hotStartupTime'}'> startup-time.json
104 104