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

lloydmeta / enumeratum / 718 / 2
100%
master: 89%

Build:
Build:
LAST BUILD BRANCH: dependency-notes
DEFAULT BRANCH: master
Ran 05 Feb 2017 05:35AM UTC
Files 44
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

05 Feb 2017 05:18AM UTC coverage: 100.0%. First build
718.2

push

travis-ci

lloydmeta
Closes #105: Optimise entryName in stackable traits

Instead of using abstract override, just override and refer to a stable
private lazy val that refers to super.entryName. Lazy is used because
we don't want to create and store the String if users don't need to
serialise their enums.

Performance comparison (spoiler, in stacked case ~500x faster)

Before:
[info] Benchmark                         Mode  Cnt     Score    Error  Units
[info] EnumBenchmarks.entryNameStacked   avgt   30  1499.862 ± 34.588  ns/op
[info] EnumBenchmarks.entryNameStandard  avgt   30     4.461 ±  0.087  ns/op

After:
[info] Benchmark                         Mode  Cnt  Score   Error  Units
[info] EnumBenchmarks.entryNameStacked   avgt   30  3.180 ± 0.040  ns/op
[info] EnumBenchmarks.entryNameStandard  avgt   30  3.185 ± 0.075  ns/op

402 of 402 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 718.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 718
  • Travis Job 718.2
  • ea91e65e on github
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