Back to Projects

Micro-Benchmark API

Run micro-benchmarks for JSON parsing, array operations, string manipulation, and crypto hashing. See Bun's performance in action.

Endpoint

POST/api/benchmark

⚠️ Rate limited to 10 requests per minute per IP address.

Request Body

type string (required) Benchmark type: "json", "array", "string", or "crypto"

Response Schema

typestringThe benchmark type that was executed
executionTimenumber (microseconds)Total execution time in microseconds
iterationsnumberNumber of iterations performed (default: 10,000)
timestampstring (ISO 8601)When the benchmark was executed

🧪 Try It Live

Select a benchmark type and run it against our Bun-powered server.

Benchmark Type-
Execution Time-
Iterations-
Time per Iteration-

Example Request

curl -X POST https://beanola.com/api/benchmark \
  -H "Content-Type: application/json" \
  -d '{"type": "json"}'

Example Response

{
  "type": "json",
  "executionTime": 45230.5,
  "iterations": 10000,
  "timestamp": "2025-01-25T12:00:00.000Z"
}