aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-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