razorpay / ifsc-api

:bank: Standalone API for IFSC codes
MIT License
77 stars 37 forks source link

Adds filters for search by bank, city and state with pagination #131

Closed yashy3nugu closed 1 year ago

yashy3nugu commented 1 year ago

@captn3m0 I have updated the README and added the performance of the ab benchmark below. Performance report for ab -n 100 -c 100 "http://localhost:9292/search?limit=100&offset=0"

Server Software:        thin
Server Hostname:        localhost
Server Port:            9292

Document Path:          /search?limit=100&offset=0
Document Length:        38598 bytes

Concurrency Level:      100
Time taken for tests:   0.416 seconds
Complete requests:      100
Failed requests:        0
Total transferred:      3918500 bytes
HTML transferred:       3859800 bytes
Requests per second:    240.24 [#/sec] (mean)
Time per request:       416.246 [ms] (mean)
Time per request:       4.162 [ms] (mean, across all concurrent requests)
Transfer rate:          9193.27 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    3   0.5      3       3
Processing:    17  263 103.5    263     396
Waiting:       14  229 110.2    204     396
Total:         17  266 103.9    266     399

Percentage of the requests served within a certain time (ms)
  50%    266
  66%    335
  75%    368
  80%    368
  90%    399
  95%    399
  98%    399
  99%    399
 100%    399 (longest request)
captn3m0 commented 1 year ago

2 things left:

  1. Switch to Bank Codes. Use banknames.json to be used as the mapping.
  2. Add a simple curl healthcheck to the docker container, to mitigate the 3 minute startup delay.