Back to Aptos Core

Typescript k6 load test for Aptos services

testsuite/loadtest-k6/README.md

latest718 B
Original Source

Typescript k6 load test for Aptos services

See https://github.com/grafana/k6-template-typescript

Prerequisites

Installation

Install dependencies

bash
yarn install

Running the test

To run a test written in TypeScript, we first have to transpile the TypeScript code into JavaScript and bundle the project

bash
yarn start

This command creates the final test files to the ./dist folder.

Once that is done, we can run our script the same way we usually do, for instance:

bash
k6 run dist/${YOUR_TEST}-test.js