We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 563729a commit cad3d92Copy full SHA for cad3d92
benchmark/sirun/log/index.js
@@ -4,7 +4,6 @@ const log = require('../../../packages/dd-trace/src/log')
4
5
const {
6
DD_TRACE_DEBUG = 'true',
7
- ITERATIONS = 1000,
8
WITH_LEVEL = 'debug'
9
} = process.env
10
@@ -19,6 +18,6 @@ log.use({
19
18
error () {}
20
})
21
22
-for (let i = 0; i < ITERATIONS; i++) {
+for (let i = 0; i < 1000000; i++) {
23
log[WITH_LEVEL](() => 'message')
24
}
benchmark/sirun/log/meta.json
@@ -3,7 +3,7 @@
3
"run": "node index.js",
"run_with_affinity": "bash -c \"taskset -c $CPU_AFFINITY node index.js\"",
"cachegrind": false,
- "iterations": 190,
+ "iterations": 40,
"instructions": true,
"variants": {
"without-log": { "env": { "DD_TRACE_DEBUG": "false" } },
0 commit comments