ApiliumHub
Back to browse

load-test

ApiliumApiliumv1.0.318600
officialplatinum (7/8)

k6/Artillery load test scripts, percentile analysis, bottleneck detection

Install

mayros skill install load-test
mayros skill install [email protected]

README

load-test

Design and analyze load tests using k6 and Artillery. Covers ramp patterns, percentile analysis, threshold configuration, and bottleneck detection.

Installation

Copy this skill directory into your Mayros skills folder:

cp -r skills/load-test ~/.mayros/skills/load-test

Or install via the Skills Hub:

mayros skill install @apilium/load-test

Prerequisites

k6 is optional but recommended for executing generated scripts:

# macOS
brew install k6

# Linux (Debian/Ubuntu)
sudo gpg -k
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/k6-archive-keyring.gpg \
  --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C5AD17C747E3415A3642D57D77C6C491D6AC1D69
echo "deb [signed-by=/usr/share/keyrings/k6-archive-keyring.gpg] https://dl.k6.io/deb stable main" \
  | sudo tee /etc/apt/sources.list.d/k6.list
sudo apt-get update && sudo apt-get install k6

# Docker
docker run --rm -i grafana/k6 run - <script.js

Artillery runs via npx without installation: npx artillery run config.yml.

Usage

Activate the skill and describe the load test scenario:

Design a stress test for POST /api/v1/orders to find the breaking point

The skill generates configurations for five test patterns:

PatternPurposeTypical Duration
SmokeVerify script works1 minute
LoadTest expected traffic5-10 minutes
StressFind breaking point10-20 minutes
SpikeTest sudden bursts5 minutes
SoakDetect memory leaks1-4 hours

Percentile Analysis

The skill focuses on tail latencies, not averages:

PercentileMeaning
p50Median -- typical user experience
p9090th percentile -- good performance indicator
p9595th percentile -- common SLA target
p9999th percentile -- worst case for most users

Bottleneck Detection

The skill identifies bottleneck types from test results:

TypeEvidenceFix
CPUResponse time increases linearly with VUsOptimize hot paths, scale horizontally
MemoryMemory grows without releasing (soak test)Fix leaks, tune GC
ConnectionsFlat latency then sudden spikeIncrease pool size, connection reuse
BandwidthThroughput plateausCompress responses, use CDN
DatabaseApp CPU low, DB CPU highAdd indexes, read replicas, caching

Recommended Thresholds

Endpoint Typep95 TargetMax Error Rate
Health check< 100ms< 0.1%
REST API (read)< 300ms< 1%
REST API (write)< 500ms< 1%
Web page (SSR)< 2000ms< 1%

Semantic Predicates

PredicateDescription
loadtest:designedA load test configuration was produced
loadtest:bottleneck_foundA bottleneck was identified in results
loadtest:result_contextNamespace-level load test history

License

MIT

Versions

v1.0.3Feb 27, 2026
v1.0.2Feb 27, 2026
v1.0.1Feb 27, 2026
v1.0.0Feb 27, 2026

Comments

Sign in to leave a comment.

Loading comments...