Skip to content

Load Testing

Create the file pageview.json.

pageview.json
{
  "version": "1.0.0",
  "domain": "uptimerobot.com",
  "url": "https://uptimerobot.com/",
  "body": "I love my new iPad mini!",
  "test": true
}

Then, use Apache Bench to benchmark the Mentionlink endpoint. The command executes 10 requests in parallel with a total of 1000 requests; feel free to adjust per your website's traffic to confirm we can meet your demand.

ab -n 1000 -c 10 -H "content-type: application/json" -p pageview.json "https://api.mentionlink.com/v2/pageview"

Results

As can be observed, the mean (50th percentile) latency is about 150ms, which is very good.

This is ApacheBench, Version 2.3 <$Revision: 1923142 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking api.mentionlink.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software:        cloudflare
Server Hostname:        api.mentionlink.com
Server Port:            443
SSL/TLS Protocol:       TLSv1.3,TLS_AES_256_GCM_SHA384,256,256
Server Temp Key:        X25519 253 bits
TLS Server Name:        api.mentionlink.com

Document Path:          /v2/pageview
Document Length:        821 bytes

Concurrency Level:      10
Time taken for tests:   15.465 seconds
Complete requests:      1000
Failed requests:        1
   (Connect: 0, Receive: 0, Length: 1, Exceptions: 0)
Non-2xx responses:      999
Total transferred:      1555511 bytes
Total body sent:        324000
HTML transferred:       820179 bytes
Requests per second:    64.66 [#/sec] (mean)
Time per request:       154.655 [ms] (mean)
Time per request:       15.465 [ms] (mean, across all concurrent requests)
Transfer rate:          98.22 [Kbytes/sec] received
                        20.46 kb/s sent
                        118.68 kb/s total

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  107 227.3     56    3091
Processing:    17   46 109.6     27    2813
Waiting:       17   41  65.8     26    1348
Total:         58  153 254.8     85    3128

Percentage of the requests served within a certain time (ms)
  50%     85
  66%     92
  75%    100
  80%    109
  90%    250
  95%    481
  98%   1085
  99%   1110
 100%   3128 (longest request)