Skip to content

Commit

Permalink
fix(benchmark): write benchmark results to file (#4172)
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc authored Oct 1, 2023
1 parent c84698d commit 868f75e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Benchmark tests
run: |
npm run test:bench
find . -name benchmarks.txt -exec cat {} + > combined_benchmarks.txt
find . -name .benchmark-results.txt -exec cat {} + > combined_benchmarks.txt
- name: Store benchmark results
uses: benchmark-action/github-action-benchmark@v1
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ package.json.lerna_backup
#IDEA
.idea
*.iml

# non-aggregated benchmark results
.benchmark-results.txt
2 changes: 1 addition & 1 deletion packages/opentelemetry-sdk-trace-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'",
"test:browser": "karma start --single-run",
"test:webworker": "karma start karma.worker.js --single-run",
"test:bench": "node test/performance/benchmark/index.js",
"test:bench": "node test/performance/benchmark/index.js | tee .benchmark-results.txt",
"tdd": "npm run tdd:node",
"tdd:node": "npm run test -- --watch-extensions ts --watch",
"tdd:browser": "karma start",
Expand Down

0 comments on commit 868f75e

Please sign in to comment.