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¶
- Webhook Trigger: The workflow starts when a POST request is made to the
/benchmark-testendpoint - Data Generation: JavaScript code creates 1000 mock data records with random values
- Processing Simulation: Each record is marked as processed with an ID, random value, and status flag
- 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 | |
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
Related Workflows¶
No related workflows identified.
Setup Instructions¶
-
Import Workflow: Copy the workflow JSON and import it into your n8n instance
-
Activate Workflow: Enable the workflow to make the webhook endpoint available
-
Test the Endpoint: Make a POST request to test functionality:
1curl -X POST https://your-n8n-instance.com/webhook/benchmark-test -
Verify Response: Confirm you receive a JSON response with count, success status, and timestamp
-
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.