kibana/packages/kbn-scalability-simulation-generator
Spencer a3b2757e4e
[type-summarizer] reimplement for broader support (#135163)
* [type-summarizer] reimplement for broader support

* Enable sourceMaps in all packages

* include naming collision in summarizePackage test

* fix readmes

* remove unnecessary transient dependency

* remove code that was commented out

* remove outdated todo comment

* ensure errors triggered by untyped-exports are ligible

* remove unused import

* break out snippet generation from AstIndexer

* refactor several massive files into smaller pieces and add more inline docs

* fix typos

* update jest snapshots

* add sections to readme that points people to the useful parts of the source code along with a high-level overview of how the type-summarizer works

* remove --dump flag, it doesn't work

* use decName instead of calling names.get a second time

* include `export` as invalid name
2022-07-06 13:48:45 -05:00
..
src [packages] add kbn-scalability-simulation-generator package (#132631) 2022-06-14 10:08:26 +02:00
BUILD.bazel [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00
jest.config.js [packages] add kbn-scalability-simulation-generator package (#132631) 2022-06-14 10:08:26 +02:00
package.json [packages] add kbn-scalability-simulation-generator package (#132631) 2022-06-14 10:08:26 +02:00
README.md [packages] add kbn-scalability-simulation-generator package (#132631) 2022-06-14 10:08:26 +02:00
tsconfig.json [type-summarizer] reimplement for broader support (#135163) 2022-07-06 13:48:45 -05:00

@kbn/scalability-simulation-generator

A library to generate scalability benchmarking simulation file, that can be run by Gatling performance testing tool.

Usage

There are 2 ways to run auto-generated simulation files, using:

  • Gatling bundle
  • kibana-load-testing project

If you plan to use Gatling-bundle, generate simulation using this command:

    node scripts/generate_scalability_simulations.js \
      --dir "<path to @kbn/performance-testing-dataset-extractor output>" \
      --baseUrl "<Kibana server baseURL>"

If you plan to use kibana-load-testing, use the following command:

    node scripts/generate_scalability_simulations.js \
      --dir "<path to @kbn/performance-testing-dataset-extractor output>" \
      --baseUrl "<Kibana server baseURL>" \
      --packageName "org.kibanaLoadTest"

To run the generated simulation:

  • Move file to src/test/scala/org/kibanaLoadTest
  • Compile source code mvn clean compile
  • Run simulation mvn gatling:test -Dgatling.simulationClass=org.kibanaLoadTest.<simulationFileName>