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

pulibrary / bibdata / 622fdf4d-7147-4587-b842-aa267064cf22 / 2
90%
main: 90%

Build:
Build:
LAST BUILD BRANCH: location_facet_in_rust
DEFAULT BRANCH: main
Ran 17 Mar 2026 01:28AM UTC
Files 114
Run time 3s
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:18AM UTC coverage: 92.051% (+2.6%) from 89.493%
622fdf4d-7147-4587-b842-aa267064cf22.2

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

3173 of 3447 relevant lines covered (92.05%)

777.19 hits per line

Source Files on job 622fdf4d-7147-4587-b842-aa267064cf22.2
  • Tree
  • List 114
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 622
  • 91a143c6 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