Skip to content

Benchmark Test

A performance testing workflow that simulates data processing operations to measure n8n execution speed and capacity. This workflow generates 1000 data records, processes them through JavaScript code, and returns performance metrics via webhook response.

Purpose

No business context provided yet — add a context.md to enrich this documentation.

How It Works

  1. Webhook Trigger: The workflow starts when a POST request is made to the /benchmark-test endpoint
  2. Data Generation: JavaScript code creates 1000 mock data records with random values
  3. Processing Simulation: Each record is marked as processed with an ID, random value, and status flag
  4. Response: Returns a summary with the total count, success status, and timestamp

Workflow Diagram

graph TD
    A[Webhook] --> B[Webhook1]
    B --> C[Code in JavaScript]
    C --> D[Respond to Webhook]

Trigger

Type: Webhook
Method: POST
Path: /benchmark-test
Response Mode: Response Node

The workflow is triggered by making a POST request to the webhook endpoint. No specific payload is required.

Nodes Used

Node Type Node Name Purpose
Webhook Webhook Initial trigger endpoint (appears unused in current flow)
Webhook Webhook1 Active trigger that starts the workflow
Code Code in JavaScript Generates and processes 1000 mock data records
Respond to Webhook Respond to Webhook Returns processing results to the caller

External Services & Credentials Required

This workflow is self-contained and does not require any external services or credentials.

Environment Variables

No environment variables are required for this workflow.

Data Flow

Input: - POST request to /benchmark-test endpoint - No specific payload required

Processing: - Generates 1000 records with structure: { id: number, value: number, processed: boolean } - Each record gets a sequential ID (0-999) and random value (0-100)

Output:

1
2
3
4
5
{
  "count": 1000,
  "success": true,
  "timestamp": "2025-12-06T08:29:45.042Z"
}

Error Handling

The workflow does not implement explicit error handling. JavaScript execution errors would cause the workflow to fail and return a standard n8n error response.

Known Limitations

  • Fixed to generate exactly 1000 records (not configurable via input)
  • No error handling for JavaScript execution failures
  • Performance metrics are limited to count and timestamp
  • No memory usage or execution time measurements included

No related workflows identified.

Setup Instructions

  1. Import Workflow: Copy the workflow JSON and import it into your n8n instance

  2. Activate Workflow: Enable the workflow to make the webhook endpoint available

  3. Test the Endpoint: Make a POST request to test functionality:

    1
    curl -X POST https://your-n8n-instance.com/webhook/benchmark-test
    

  4. Verify Response: Confirm you receive a JSON response with count, success status, and timestamp

  5. Performance Testing: Use this endpoint with load testing tools to measure n8n performance under various conditions

The workflow is ready to use immediately after import and activation - no additional configuration is required.