You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit enables benchmarks for the Node.js agent. For every commit
to master, Jenkins will the benchmarks located in the `test/benchmarks`
directory.
Currently, those benchmarks are:
- `test/benchmarks/001-transaction-and-span-no-stack-trace.js`,
Measures the overhead of starting and ending a transaction and a span
without a stack trace
- `test/benchmarks/002-transaction-and-span-overhead-realistic-size.js`,
Measures the overhead of starting and ending a transaction and a span
with a realistic size stack trace
- `test/benchmarks/003-transaction-and-span-with-stack-trace.js`,
Measures the overhead of starting and ending a transaction and a span
with a simple uniform stack trace
- `test/benchmarks/004-transaction.js`,
Measures the overhead of starting and ending a transaction only
- `test/benchmarks/005-transaction-reading-file.js`,
Measures the overhead of starting and ending a transaction only while
reading a file
The benchmarks are using the benchmark.js benchmarking tool. For each of
the benchmarks, it would be best to get the relative margin of error
down below 1%, but benchmark.js doesn't support running the benchmark
until a given relative margin of error threshold. So for now this commit
just run each of them for 2x60 seconds (60 seconds for the benchmark it
self and 60 seconds for the control), which in most cases gets them
below the magic 1%.
A PR has been opened to add this feature to benchmark.js:
bestiejs/benchmark.js#223
Each of the benchmarks a new document is added to our Elasticsearch
benchmarking cluster when running on Jenkins.
To add a new benchmark, simply add a new file to the `test/benchmarks`
directory.
To get more info about how to run the benchmarks locally, run:
npm run bench -- --help
Closes#293Closes#306
Copy file name to clipboardExpand all lines: Jenkinsfile
+47Lines changed: 47 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ pipeline {
28
28
}
29
29
parameters {
30
30
booleanParam(name: 'Run_As_Master_Branch', defaultValue: false, description: 'Allow to run any steps on a PR, some steps normally only run on master branch.')
0 commit comments