Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
0c5639f4
Verified
Commit
0c5639f4
authored
Nov 24, 2021
by
Chocobozzz
Browse files
More precise startup benchmark
parent
4ce5f50c
Pipeline
#460299
passed with stage
in 12 minutes and 42 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.github/workflows/benchmark.yml
View file @
0c5639f4
...
@@ -90,15 +90,15 @@ jobs:
...
@@ -90,15 +90,15 @@ jobs:
run
:
|
run
:
|
npm run clean:server:test
npm run clean:server:test
startCold=`date +%s`
startCold=`date +%s
%3N
`
NODE_APP_INSTANCE=1 NODE_ENV=test node dist/server --benchmark-startup
NODE_APP_INSTANCE=1 NODE_ENV=test node dist/server --benchmark-startup
endCold=`date +%s`
endCold=`date +%s
%3N
`
coldStartupTime=$(
(
endCold-startCold))
coldStartupTime=$(
echo "scale=2; ($
endCold-
$
startCold)
/1000" | bc
)
startHot=`date +%s`
startHot=`date +%s
%3N
`
NODE_APP_INSTANCE=1 NODE_ENV=test node dist/server --benchmark-startup
NODE_APP_INSTANCE=1 NODE_ENV=test node dist/server --benchmark-startup
endHot=`date +%s`
endHot=`date +%s
%3N
`
hotStartupTime=$(
(
endHot-startHot))
hotStartupTime=$(
echo "scale=2; ($
endHot-
$
startHot)
/1000" | bc
)
echo '{"coldStartupTime":'$coldStartupTime',"hotStartupTime":'$hotStartupTime'}'> startup-time.json
echo '{"coldStartupTime":'$coldStartupTime',"hotStartupTime":'$hotStartupTime'}'> startup-time.json
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment