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

ruby-grape / grape / 38960101986
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: perf/eager-load-i18n
DEFAULT BRANCH: master
Ran 16 Oct 2026 08:10PM UTC
Jobs 32
Files 168
Run time 1min
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

16 Oct 2026 08:08PM UTC coverage: 99.966%. Remained the same
38960101986

Pull #3033

github

ericproulx
Allocate less per request when presenting an entity or reading path params

Profiling the grape-on-rack app under live load showed four per-request
allocations whose only use was to feed another one:

- `present` collected the `env`/`version` embeds into a Hash and splatted
  it into `represent`, whose keywords build a Hash anyway: two Hashes per
  call where one does.
- `present` built `[nil, object]` only to destructure it in the
  one-argument form.
- `Request#make_params` copied the routing args with `except` only to
  `deep_merge!` the copy into the params. A capture is a String or an
  Array of them, never a Hash, so the merge only ever assigned; the
  captures are now assigned directly, skipping Grape's own keys.
- `format_from_extension` sliced the extension out with an endless
  Range, an object of its own on every call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #3033: Allocate less per request when presenting an entity or reading path params

1504 of 1505 branches covered (99.93%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 2 files covered. (100.0%)

4410 of 4411 relevant lines covered (99.98%)

29525.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_8_0.gemfile - 38960101986.1 16 Oct 2026 08:11PM UTC 168
98.8
GitHub Action Run
2 run-4.0-gemfiles/grape_swagger.gemfile - 38960101986.2 16 Oct 2026 08:12PM UTC 166
53.11
GitHub Action Run
3 run-3.4-Gemfile - 38960101986.3 16 Oct 2026 08:12PM UTC 167
98.8
GitHub Action Run
4 run-3.4-gemfiles/rails_7_2.gemfile - 38960101986.4 16 Oct 2026 08:11PM UTC 168
98.8
GitHub Action Run
5 run-4.0-gemfiles/multi_xml.gemfile - 38960101986.5 16 Oct 2026 08:11PM UTC 166
45.58
GitHub Action Run
6 run-3.4-gemfiles/rack_2_2.gemfile - 38960101986.6 16 Oct 2026 08:11PM UTC 167
98.76
GitHub Action Run
7 run-4.0-gemfiles/rack_3_2.gemfile - 38960101986.7 16 Oct 2026 08:12PM UTC 167
98.8
GitHub Action Run
8 run-3.3-gemfiles/rack_3_2.gemfile - 38960101986.8 16 Oct 2026 08:11PM UTC 167
98.82
GitHub Action Run
9 run-3.3-Gemfile - 38960101986.9 16 Oct 2026 08:12PM UTC 167
98.82
GitHub Action Run
10 run-3.4-gemfiles/rails_8_1.gemfile - 38960101986.10 16 Oct 2026 08:12PM UTC 168
98.8
GitHub Action Run
11 run-3.4-gemfiles/rails_8_0.gemfile - 38960101986.11 16 Oct 2026 08:11PM UTC 168
98.8
GitHub Action Run
12 run-4.0-gemfiles/multi_xml_0_8.gemfile - 38960101986.12 16 Oct 2026 08:11PM UTC 166
45.62
GitHub Action Run
13 run-3.4-gemfiles/rack_3_2.gemfile - 38960101986.13 16 Oct 2026 08:12PM UTC 167
98.8
GitHub Action Run
14 run-3.3-gemfiles/rack_3_1.gemfile - 38960101986.14 16 Oct 2026 08:12PM UTC 167
98.82
GitHub Action Run
15 run-4.0-gemfiles/rack_3_0.gemfile - 38960101986.15 16 Oct 2026 08:10PM UTC 167
98.8
GitHub Action Run
16 run-4.0-gemfiles/rack_3_1.gemfile - 38960101986.16 16 Oct 2026 08:12PM UTC 167
98.8
GitHub Action Run
17 run-4.0-gemfiles/multi_json_1_20.gemfile - 38960101986.17 16 Oct 2026 08:12PM UTC 166
45.92
GitHub Action Run
18 run-4.0-gemfiles/rack_2_2.gemfile - 38960101986.18 16 Oct 2026 08:11PM UTC 167
98.76
GitHub Action Run
19 run-3.4-gemfiles/rack_3_0.gemfile - 38960101986.19 16 Oct 2026 08:10PM UTC 167
98.8
GitHub Action Run
20 run-4.0-gemfiles/hashie.gemfile - 38960101986.20 16 Oct 2026 08:10PM UTC 166
59.79
GitHub Action Run
21 run-4.0-gemfiles/dry_validation.gemfile - 38960101986.21 16 Oct 2026 08:12PM UTC 166
55.74
GitHub Action Run
22 run-4.0-gemfiles/grape_entity.gemfile - 38960101986.22 16 Oct 2026 08:10PM UTC 166
48.79
GitHub Action Run
23 run-4.0-gemfiles/rails_7_2.gemfile - 38960101986.23 16 Oct 2026 08:10PM UTC 168
98.8
GitHub Action Run
24 run-3.3-gemfiles/rails_8_0.gemfile - 38960101986.24 16 Oct 2026 08:12PM UTC 168
98.82
GitHub Action Run
25 run-3.4-gemfiles/rack_3_1.gemfile - 38960101986.25 16 Oct 2026 08:11PM UTC 167
98.8
GitHub Action Run
26 run-3.3-gemfiles/rack_3_0.gemfile - 38960101986.26 16 Oct 2026 08:10PM UTC 167
98.82
GitHub Action Run
27 run-3.3-gemfiles/rack_2_2.gemfile - 38960101986.27 16 Oct 2026 08:11PM UTC 167
98.78
GitHub Action Run
28 run-4.0-gemfiles/rails_8_1.gemfile - 38960101986.28 16 Oct 2026 08:12PM UTC 168
98.8
GitHub Action Run
29 run-4.0-gemfiles/multi_json.gemfile - 38960101986.29 16 Oct 2026 08:10PM UTC 166
45.89
GitHub Action Run
30 run-3.3-gemfiles/rails_8_1.gemfile - 38960101986.30 16 Oct 2026 08:10PM UTC 168
98.82
GitHub Action Run
31 run-3.3-gemfiles/rails_7_2.gemfile - 38960101986.31 16 Oct 2026 08:11PM UTC 168
98.82
GitHub Action Run
32 run-4.0-Gemfile - 38960101986.32 16 Oct 2026 08:10PM UTC 167
98.8
GitHub Action Run
Source Files on build 38960101986
  • Tree
  • List 168
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #38960101986
  • Pull Request #3033
  • PR Base - master (#38951491706)
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