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

dblock / ruby-enum
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dblock/coveralls-github-token
DEFAULT BRANCH: master
Repo Added 30 Dec 2025 05:05PM UTC
Files 7
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

LAST BUILD ON BRANCH document-performance
branch: document-performance
CHANGE BRANCH
x
Reset
  • document-performance
  • HEAD
  • dblock/coveralls-github-token
  • fix-subclass-no-defines
  • fix-values-override-issue-62
  • master
  • memoize-enum-hash
  • rename-ruby-namespace
  • replace-code-climate-with-coveralls
  • ruby-4.0
  • subclass-inherited-values
  • update-copyright-year

15 Aug 2026 02:00AM UTC coverage: 100.0%. Remained the same
#34

Pull #61

dblock
Document Ruby::Enum performance overhead in README

Add benchmarks/basic.rb comparing basic Ruby::Enum operations
(constant access, value, key, key?, keys, values) against their
plain Ruby equivalents (constants, Hash), and a rake benchmark:basic
task to run it.

Add a new 'Performance' subsection under Benchmarks in README.md
documenting, with real numbers, that constant access has no
measurable overhead while hash-backed lookups carry roughly 3-5x
overhead vs. a plain Hash, that this overhead does not grow with
subclass depth (see rake benchmark:inheritance), and that
Ruby::Enum::Case is the one notable outlier at 50-100x slower than
a native case statement (see rake benchmark:case).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Pull Request #61: Document performance overhead in README

161 of 161 relevant lines covered (100.0%)

6.86 hits per line

Relevant lines Covered
Build:
Build:
161 RELEVANT LINES 161 COVERED LINES
6.86 HITS PER LINE
Source Files on document-performance
  • Tree
  • List 8
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
#34 document-performance Document Ruby::Enum performance overhead in README Add benchmarks/basic.rb comparing basic Ruby::Enum operations (constant access, value, key, key?, keys, values) against their plain Ruby equivalents (constants, Hash), and a rake benchmark:basic ... Pull #61 15 Aug 2026 02:00AM UTC dblock
100.0
#33 document-performance Document Ruby::Enum performance overhead in README Add benchmarks/basic.rb comparing basic Ruby::Enum operations (constant access, value, key, key?, keys, values) against their plain Ruby equivalents (constants, Hash), and a rake benchmark:basic ... Pull #61 15 Aug 2026 01:58AM UTC dblock
100.0
See All Builds (51)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc