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

pulibrary / bibdata / c1f1a357-0d1c-4400-bbd1-4837d4854fb0
90%
main: 90%

Build:
Build:
LAST BUILD BRANCH: dependabot/bundler/activesupport-8.1.2.1
DEFAULT BRANCH: main
Ran 17 Mar 2026 01:14AM UTC
Jobs 1
Files 70
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

17 Mar 2026 01:07AM UTC coverage: 89.453% (-0.9%) from 90.311%
c1f1a357-0d1c-4400-bbd1-4837d4854fb0

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

23 of 29 new or added lines in 2 files covered. (79.31%)

6573 of 7348 relevant lines covered (89.45%)

22.03 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
30.0
-0.43% lib/bibdata_rs/src/marc/ruby_bindings.rs
Jobs
ID Job ID Ran Files Coverage
1 c1f1a357-0d1c-4400-bbd1-4837d4854fb0.1 17 Mar 2026 01:14AM UTC 70
89.45
Source Files on build c1f1a357-0d1c-4400-bbd1-4837d4854fb0
  • Tree
  • List 70
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #C1F1A357...
  • Pull Request #3118
  • PR Base - main (#3DFCC529...)
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