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

TykTechnologies / tyk / 6870

Build:
DEFAULT BRANCH: master
Ran 30 Jun 2019 08:32AM UTC
Jobs 1
Files 113
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6870

push

travis-ci

buger
(cache) reduce cache lookups with singleflight (#2368)

Implements singleflight for redis cache-key lookups. This ensures only
one execution is in-flight for a given cache-key. If duplicate comes in,
the duplicate caller will wait for the original to be returned and
receives the same results.

Synthetic benchmark with caching enabled before Singleflight:
```
hey -z 60s -c 50 -host httpbin http://gateway.ahmet:8080/httpbin/get

Summary:
  Total:    60.1466 secs
  Slowest:    0.2900 secs
  Fastest:    0.0014 secs
  Average:    0.0116 secs
  Requests/sec:    4304.2495

Response time histogram:
  0.001 [1]    |
  0.030 [258246]    |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  0.059 [538]    |
  0.088 [1]    |
  0.117 [2]    |
  0.146 [0]    |
  0.175 [0]    |
  0.203 [1]    |
  0.232 [8]    |
  0.261 [49]    |
  0.290 [40]    |

Latency distribution:
  10% in 0.0074 secs
  25% in 0.0089 secs
  50% in 0.0109 secs
  75% in 0.0134 secs
  90% in 0.0164 secs
  95% in 0.0186 secs
  99% in 0.0241 secs

Details (average, fastest, slowest):
  DNS+dialup:    0.0000 secs, 0.0014 secs, 0.2900 secs
  DNS-lookup:    0.0000 secs, 0.0000 secs, 0.0045 secs
  req write:    0.0000 secs, 0.0000 secs, 0.0033 secs
  resp wait:    0.0115 secs, 0.0013 secs, 0.2810 secs
  resp read:    0.0001 secs, 0.0000 secs, 0.0045 secs

Status code distribution:
  [200]    258886 responses
```

Synthetic benchmark with caching & singleflight implemented:
```
hey -z 60s -c 50 -host httpbin http://gateway.ahmet:8080/httpbin/get

Summary:
  Total:    60.0035 secs
  Slowest:    0.3117 secs
  Fastest:    0.0002 secs
  Average:    0.0055 secs
  Requests/sec:    9031.3005

Response time histogram:
  0.000 [1]    |
  0.031 [541361]    |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  0.063 [234]    |
  0.094 [59]    |
  0.125 [4]    |
  0.156 [52]    |
  0.187 [54]    |
  0.218 [60]    |
  0.249 [36]    |
  0.281 [26]    |
  0.312 [23]   ... (continued)

11773 of 18357 relevant lines covered (64.13%)

0.72 hits per line

Jobs
ID Job ID Ran Files Coverage
2 6870.2 (LATEST_GO=true) 30 Jun 2019 08:32AM UTC 0
64.13
Travis Job 6870.2
Source Files on build 6870
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6870
  • 6a560268 on github
  • Prev Build on master (#6868)
  • Next Build on master (#6872)
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

© 2025 Coveralls, Inc