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

toml-rs / toml / 15691041148
81%

Build:
DEFAULT BRANCH: main
Ran 16 Jun 2025 08:20PM UTC
Jobs 1
Files 126
Run time 2min
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 Jun 2025 08:18PM UTC coverage: 69.303% (-0.008%) from 69.311%
15691041148

push

github

web-flow
perf(toml): Allow opting in to faster hasher (#956)

I chose `foldhash` because it is the default of `hashbrown@0.15`
(replacing ahash), see rust-lang/hashbrown#563.

Currently, `ahash` is the only hasher I noticed inside of Cargo and that
is coming in from `hashbrown@0.14`.

In the future, we could consider allowing the use of a `FixedState` so
we could offer `IndexMap` on `alloc`.

```
$ cargo bench --bench 0-cargo -Fpreserve_order -- 0_cargo::toml::document::2-features
   Compiling toml v0.5.11
   Compiling toml v0.8.23 (/home/epage/src/personal/toml/crates/toml)
   Compiling toml_benchmarks v0.0.0 (/home/epage/src/personal/toml/crates/benchmarks)
    Finished `bench` profile [optimized] target(s) in 19.13s
     Running benches/0-cargo.rs (/home/epage/src/personal/toml/target/release/deps/0_cargo-09d7e00849b1b878)
Timer precision: 11 ns
0_cargo              fastest       │ slowest       │ median        │ mean          │ samples │ iters
╰─ toml                            │               │               │               │         │
   ╰─ document                     │               │               │               │         │
      ╰─ 2-features  468.8 µs      │ 1.016 ms      │ 513.5 µs      │ 543.5 µs      │ 100     │ 100


$ cargo bench --bench 0-cargo -Ffast_hash -- 0_cargo::toml::document::2-features
    Finished `bench` profile [optimized] target(s) in 0.02s
     Running benches/0-cargo.rs (/home/epage/src/personal/toml/target/release/deps/0_cargo-ea11bd9a52599c35)
Timer precision: 18 ns
0_cargo              fastest       │ slowest       │ median        │ mean          │ samples │ iters
╰─ toml                            │               │               │               │         │
   ╰─ document                     │               │               │               │         │
      ╰─ 2-features  431.4 µs      │ 870.3 µs      │ 446.2 µs      │ 459.9 µs      │ 100     │ 100
```

3 of 4 new or added lines in 1 file covered. (75.0%)

1 existing line in 1 file now uncovered.

6204 of 8952 relevant lines covered (69.3%)

6.86 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
66.15
-0.51% crates/toml/src/map.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
66.15
-0.51% crates/toml/src/map.rs
Jobs
ID Job ID Ran Files Coverage
1 15691041148.1 16 Jun 2025 08:20PM UTC 126
69.3
GitHub Action Run
Source Files on build 15691041148
  • Tree
  • List 126
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4868e7a3 on github
  • Prev Build on main (#15687156076)
  • Next Build on main (#15691468015)
  • Delete
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