Skip to content

Performance Test on API Maker

[Plan: Linode 1 GB | Region: Mumbai, IN]

⭐ $5 Linode Ubuntu 22.04 LTS, 1GB RAM, 1vCPU, 1TB Bandwidth

  • MongoDB 6, Redis are inside server installed using docker.
  • Server Location: Mumbai
  • Benchmark taken by server location: Mumbai
  • Date: 17-Apr-2023

⭐Custom API

  • Type: TCP
  • Return data: {"hello": "world"}
  • Tried multiple times, and it is working without any error with ~221 avg requests.
  • API starts giving errors.

API Maker Benchmarking of Custom API with 10 records using $5 linode server

% autocannon -d 60 -p 15 "http://172.232.67.15/api/custom-api/admin/hello-world"
Running 60s test @ http://172.232.67.15/api/custom-api/admin/hello-world
10 connections with 15 pipelining factor

┌─────────┬────────┬────────┬────────┬────────┬───────────┬──────────┬─────────┐
│ Stat    │ 2.5%   │ 50%    │ 97.5%  │ 99%    │ Avg       │ Stdev    │ Max     │
├─────────┼────────┼────────┼────────┼────────┼───────────┼──────────┼─────────┤
│ Latency │ 611 ms │ 663 ms │ 821 ms │ 891 ms │ 672.17 ms │ 63.58 ms │ 1005 ms │
└─────────┴────────┴────────┴────────┴────────┴───────────┴──────────┴─────────┘
┌───────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐
│ Stat      │ 1%      │ 2.5%    │ 50%     │ 97.5%   │ Avg     │ Stdev   │ Min     │
├───────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤
│ Req/Sec   │ 179     │ 187     │ 225     │ 242     │ 221.87  │ 14.51   │ 179     │
├───────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤
│ Bytes/Sec │ 66.4 kB │ 69.4 kB │ 83.5 kB │ 89.8 kB │ 82.3 kB │ 5.38 kB │ 66.4 kB │
└───────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘
Req/Bytes counts sampled once per second of samples: 60

13k requests in 60.04s, 4.94 MB read