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

pulibrary / bibdata / 0dde081a-d482-4c26-b36c-ffb2ca564d85 / 1
90%
main: 90%

Build:
Build:
LAST BUILD BRANCH: orangelight-5800
DEFAULT BRANCH: main
Ran 17 Mar 2026 03:24AM UTC
Files 70
Run time 1s
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

17 Mar 2026 03:21AM UTC coverage: 89.453% (-0.04%) from 89.493%
0dde081a-d482-4c26-b36c-ffb2ca564d85.1

Pull #3118

circleci

sandbergja
Migrate some uses of Traject TranslationMaps to Rust

The rust binary includes the holdings json, so once we finish
this migration, we will not need these two translation map
files.

```
require 'benchmark/ips'
RubyVM::YJIT.enable
code = 'scsbcul'
Benchmark.ips do |x|
  x.report('rust - location label') { BibdataRs::Marc.location_label(code) }
  x.report('ruby - location label') { Traject::TranslationMap.new('locations')[code] }
  x.compare!
end
Benchmark.ips do |x|
  x.report('rust - library label') { BibdataRs::Marc.library_label(code) }
  x.report('ruby - library label') { Traject::TranslationMap.new('location_display')[code] }
  x.compare!
end
```

```
ruby 3.4.4 (2025-05-14 revision a38531fd3f) +YJIT +PRISM [arm64-darwin24]
Warming up --------------------------------------
rust - location label
                       684.446k i/100ms
ruby - location label
                       310.022k i/100ms
Calculating -------------------------------------
rust - location label
                          6.820M (± 0.9%) i/s  (146.63 ns/i) -     34.222M in   5.018583s
ruby - location label
                          3.057M (± 1.9%) i/s  (327.15 ns/i) -     15.501M in   5.073030s

Comparison:
rust - location label:  6819710.2 i/s
ruby - location label:  3056727.2 i/s - 2.23x  slower

ruby 3.4.4 (2025-05-14 revision a38531fd3f) +YJIT +PRISM [arm64-darwin24]
Warming up --------------------------------------
rust - library label   677.720k i/100ms
ruby - library label   310.036k i/100ms
Calculating -------------------------------------
rust - library label      6.808M (± 2.1%) i/s  (146.88 ns/i) -     34.564M in   5.079184s
ruby - library label      3.109M (± 1.7%) i/s  (321.69 ns/i) -     15.812M in   5.088198s

Comparison:
rust - library label:  6808218.2 i/s
ruby - library label:  3108549.8 i/s - 2.19x  slower
```
Pull Request #3118: Migrate some uses of Traject TranslationMaps to Rust

6573 of 7348 relevant lines covered (89.45%)

22.03 hits per line

Source Files on job 0dde081a-d482-4c26-b36c-ffb2ca564d85.1
  • Tree
  • List 70
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 0
  • e91a7b5f on github
  • Prev Job for on location-label (#3dfcc529-56af-429d-9a43-33c05673b95b.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