azure-sdk-for-js/sdk/formrecognizer/perf-tests/ai-form-recognizer
Jeremy Meng 1cae9db8e1 [EngSys] remove "audit" NPM script and it's related file
as we no longer use it and rely on GitHub security features.

***NO_CI***
2024-10-25 19:28:06 +00:00
..
test [EngSys] standardize OSS copyright header 2024-08-27 13:01:38 -07:00
README.md [perf-ai-form-recognizer] First stab at an LRO perf test. (#14013) 2021-03-24 11:03:46 -07:00
package.json [EngSys] remove "audit" NPM script and it's related file 2024-10-25 19:28:06 +00:00
sample.env [perf-ai-form-recognizer] First stab at an LRO perf test. (#14013) 2021-03-24 11:03:46 -07:00
tsconfig.json [EngSys] remove tsconfig.package.json 2024-07-16 13:27:25 +00:00

README.md

Guide

  1. Build the ai-form-recognizer perf tests package rush build -t @azure-tests/perf-ai-form-recognizer.

  2. Copy the sample.env file and name it as .env.

  3. Create a cognitive services account and populate the .env file with the relevant credentials.

  4. Run the tests as follows

    • custom model recognition
      • npm run perf-test:node -- CustomModelRecognitionTest --warmup 2 --duration 7 --iterations 2 --parallel 2

Be wary of low API rate limits. Increasing the "parallel" parameter can cause the performance tests to exceed the allowed request rate.