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

ben-manes / caffeine / 1522 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 18 Dec 2015 08:52AM UTC
Files 63
Run time 2s
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

18 Dec 2015 08:03AM UTC coverage: 93.832% (-0.04%) from 93.875%
TERM=dumb

push

travis-ci

ben-manes
Optimized the JCache adapter

A simple benchmark showed that, under stress, the cache was performing
only 20M reads/s and 9M/s writes on a laptop. This is a far cry from
the results when benchmarking against the core library.

The reads were dominated by native calls to acquire the current time for
expiration and statistics. Both of these are dynamic configurations, so
they cannot be factored out at construction. Instead smarter handling
is used to avoid unnecessary calls. This boosted it to 135M/s.

The write rate increased to 35M/s after removing unnecessary event
dispatch work and acquiring the current time. The GC churn seems to
account for 2-3M/s, which isn't enough given that writes are not the
common case and the complexity required to reduce it. The copier was
another 2-3M/s, since its enabled, but the immutable fastpath avoids
most of the work. This is still about half of the raw write performance,
so there may be more low hanging fruit that I missed. Its likely that
having to use a `compute` drops performance by losing optimizations
that can be done on a simpler `put`.

4305 of 4588 relevant lines covered (93.83%)

0.94 hits per line

Source Files on job 1522.1 (TERM=dumb)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1522
  • Travis Job 1522.1
  • 187a7a8a on github
  • Prev Job for TERM=dumb on master (#1521.1)
  • Next Job for TERM=dumb on master (#1523.1)
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