Skip to content

Commit

Permalink
restore
Browse files Browse the repository at this point in the history
  • Loading branch information
iunanua committed Oct 21, 2024
1 parent 33e3f28 commit 0b17cc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 3 additions & 5 deletions benchmark/sirun/appsec-iast/meta.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
{
"name": "appsec-iast",
"cachegrind": false,
"instructions": false,
"instructions": true,
"iterations": 1,
"variants": {
"startup-time-control": {
"run": "node --cpu-prof --cpu-prof-dir /tmp --cpu-prof-name control.cpuprofile --require ../../../init.js insecure-bank.js",
"run": "node --require ../../../init.js insecure-bank.js",
"run_with_affinity": "bash -c \"taskset -c $CPU_AFFINITY node --require ../../../init.js insecure-bank.js\"",
"teardown": "cp /tmp/control.cpuprofile /go/src/github.com/DataDog/apm-reliability/dd-trace-js/platform/artifacts/",
"env": {
"DD_IAST_ENABLED": "0"
}
},
"startup-time-iast-enabled": {
"run": "node --cpu-prof --cpu-prof-dir /tmp --cpu-prof-name iast.cpuprofile --require ../../../init.js insecure-bank.js",
"run": "node --require ../../../init.js insecure-bank.js",
"run_with_affinity": "bash -c \"taskset -c $CPU_AFFINITY node --require ../../../init.js insecure-bank.js\"",
"baseline": "startup-time-control",
"teardown": "cp /tmp/iast.cpuprofile /go/src/github.com/DataDog/apm-reliability/dd-trace-js/platform/artifacts/",
"env": {
"DD_IAST_ENABLED": "1"
}
Expand Down
5 changes: 1 addition & 4 deletions benchmark/sirun/run-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ function exec (...args) {
return new Promise((resolve, reject) => {
const proc = childProcess.spawn(...args)
streamAddVersion(proc.stdout)
proc.on('error', error => {
console.error(error)
reject(error)
})
proc.on('error', reject)
proc.on('exit', (code) => {
if (code === 0) {
resolve()
Expand Down

0 comments on commit 0b17cc4

Please sign in to comment.