• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / postcode-polygons / 15913575582

26 Jun 2025 10:13PM UTC coverage: 0.0%. Remained the same
15913575582

push

github

web-flow
Use memoizer with TTL to hugely speed up response latency (#9)

At the expense of increased memory usage, 100x increase in performance
(real world performance will be different..)

### Before

```console
$ wrk -d 30s 'http://localhost:8080/v1/postcode/polygons?bbox=431667,455097,432504,455847'
Running 30s test @ http://localhost:8080/v1/postcode/polygons?bbox=431667,455097,432504,455847
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    94.44ms   11.87ms 155.32ms   73.29%
    Req/Sec    53.02      8.69    80.00     82.32%
  3182 requests in 30.08s, 273.35MB read
Requests/sec:    105.77
Transfer/sec:      9.09MB
```

### After

```console
$ wrk -d 30s 'http://localhost:8080/v1/postcode/polygons?bbox=431667,455097,432504,455847'
Running 30s test @ http://localhost:8080/v1/postcode/polygons?bbox=431667,455097,432504,455847
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.21ms    2.91ms  47.46ms   96.75%
    Req/Sec     6.34k     0.89k    7.44k    82.67%
  378309 requests in 30.00s, 31.74GB read
Requests/sec:  12608.51
Transfer/sec:      1.06GB
```

0 of 7 new or added lines in 2 files covered. (0.0%)

0 of 454 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cmd/api_server.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc