โ† All Prompt Categories

๐Ÿ“š LLM HUB ยท 3 PROMPTS

API Performance Testing

3 copy-ready AI prompts for api performance testing in JMeter, k6, and Gatling. Part of the JMeter.AI LLM Hub.

REST API Full CRUD Load Test

Generate a JMeter test plan for full CRUD operations on a REST API:

Resource: [/api/v1/products]
Operations:
- POST (Create): 20% of traffic
- GET by ID (Read): 50% of traffic
- PUT (Update): 20% of traffic
- DELETE: 10% of traffic

Requirements:
- Flow dependency: Create โ†’ Read โ†’ Update โ†’ Delete in sequence per VU
- Extract ID from POST response for use in GET, PUT, DELETE
- Separate Thread Groups or Transaction Controllers per operation
- Assertions on all operations
- Think time: 1โ€“3 seconds (Gaussian Random Timer)

GraphQL Performance Testing

I need to performance test a GraphQL API at [endpoint: /graphql].

Queries to test:
1. Query: [paste GraphQL query]
2. Mutation: [paste GraphQL mutation]

Generate:
- JMeter HTTP Request for GraphQL (POST with JSON body containing query/variables)
- k6 equivalent
- How to parameterize GraphQL variables
- Common GraphQL-specific performance pitfalls (N+1, deep nesting, unbounded queries)
- How to identify expensive resolvers using APM

gRPC Load Testing

I need to load test a gRPC service with the following proto definition:
[Paste proto snippet or describe service methods]

Provide options for:
1. JMeter gRPC Plugin setup and configuration
2. k6 with k6-grpc extension
3. ghz command-line tool approach

Include:
- Tool setup and dependencies
- Script/config for each option
- How to parameterize request payloads
- How to handle TLS/mTLS
- Key metrics to monitor for gRPC services