-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf(core): Introduce backend performance benchmarking #9199
Conversation
7adada8
to
b40652d
Compare
@@ -167,7 +167,7 @@ export abstract class AbstractServer { | |||
|
|||
await this.setupHealthCheck(); | |||
|
|||
console.log(`n8n ready on ${ADDRESS}, port ${PORT}`); | |||
this.logger.info(`n8n ready on ${ADDRESS}, port ${PORT}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logging changes like these ensure N8N_LOG_LEVEL=silent
mutes this logging noise during benchmarking runs.
+ let uri = `${callingFile}::${name}`; | ||
+ if (name.includes('::')) { | ||
+ // ignore calling file misdirecting to benchmark/lib/api.js | ||
+ const [suiteName, taskName] = name.split('::'); | ||
+ uri = `${suiteName} - ${taskName}` | ||
+ } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure suite name is shown instead of packages/cli/dist/benchmark/lib/api.js
.
CodSpeed Performance ReportCongrats! CodSpeed is installed 🎉
You will start to see performance impacts in the reports once the benchmarks are run from your default branch.
|
To check after this is in master:
|
Closing due to excessive variance |
This PR introduces tinybench and Codspeed to benchmark changes to backend performance (execution time) and report improvements or regressions via CI.
Context: https://www.notion.so/n8n/Performance-benchmarking-6b66f7bf672b467a9763f81df789b08d