Skip to content

Commit

Permalink
[Beta] Add Shim Performance Testing (#1302)
Browse files Browse the repository at this point in the history
* Add shim performance tests.

* Update package-lock.json

* Fix sample env.
  • Loading branch information
JacksonWeber authored Apr 1, 2024
1 parent dadcd3a commit fae2d2e
Show file tree
Hide file tree
Showing 12 changed files with 3,512 additions and 27 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ undefined/temp/appInsights-node/applicationinsights.log
test/certs/server-key.pem
# Ignore folder created during test runs
undefined/*
node_modules
dist-esm
52 changes: 26 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions test/performanceTests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### Guide

1. Copy the `sample.env` file and name it as `.env`.
2. Create an Application Insights resource and populate the `.env` file with connectionString.
3. Run the tests as follows (parameters can be modified to as appropriate):

- Tracking Dependencies (spans)
- `npm run perf-test:node -- TrackDependencyTest --warmup 1 --iterations 1 --parallel 2 --duration 15`
- Tracking Traces (logs)
- `npm run perf-test:node -- TrackTraceTest --warmup 1 --iterations 1 --parallel 2 --duration 15`
Loading

0 comments on commit fae2d2e

Please sign in to comment.