Skip to content

Commit

Permalink
Ensure aws-lite can run bench with creds (if available)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanblock committed Sep 17, 2023
1 parent 44c5b68 commit b463796
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bench/benchmark-speed.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ for (let running of benchmarksToRun) {
.replace('/* $script1 */', script1)
.replace('/* $script2 */', script2)
.split('\n').join(' ')
let result = execSync(`node -e "${run}"`, { env: {} })
let { AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY } = process.env
let result = execSync(`node -e "${run}"`, { env: { AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY } })
benchmarks[name][running].runs.push(JSON.parse(result))
}
console.log(`Completed ${benchmarkRuns} runs in ${Date.now() - start} ms`)
Expand Down

0 comments on commit b463796

Please sign in to comment.