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

hyperledger / fabric-x-committer / 22626069477
90%
main: 90%

Build:
Build:
LAST BUILD BRANCH: test-coverage-improve
DEFAULT BRANCH: main
Ran 03 Mar 2026 01:56PM UTC
Jobs 2
Files 114
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

03 Mar 2026 01:51PM UTC coverage: 89.528% (+0.1%) from 89.424%
22626069477

Pull #316

github

cendhu
Introduce UnmarshalEnvelopeLite to speed up mapBlock

  Replace full proto.Unmarshal of Envelope→Payload→ChannelHeader (3 chained
  deserializations) with direct protobuf wire-format scanning that extracts
  only the needed fields (HeaderType, TxID, Data). This reduces envelope
  parsing from 287 ns/op to 72 ns/op — a 4x speedup with 7 fewer allocations.

  BenchmarkUnwrapEnvelope-14        4079934    286.7 ns/op   616 B/op   9 allocs/op
  BenchmarkUnwrapEnvelopeLite-14   16929306     71.5 ns/op    72 B/op   2 allocs/op

  [New mapBlock]
  BenchmarkMapBlock/txs=500-14                   2850            400160 ns/op          663662 B/op      13579 allocs/op
  BenchmarkMapBlock/txs=500-14                   2599            405622 ns/op          664974 B/op      13594 allocs/op
  BenchmarkMapBlock/txs=500-14                   2767            408145 ns/op          657391 B/op      13505 allocs/op

  [Old mapBlock]
  BenchmarkMapBlock/txs=500-14                   1497            677487 ns/op         1165977 B/op      17648 allocs/op
  BenchmarkMapBlock/txs=500-14                   1584            659822 ns/op         1168212 B/op      17674 allocs/op
  BenchmarkMapBlock/txs=500-14                   1808            635695 ns/op         1158503 B/op      17561 allocs/op

  With UnmarshalEnvelopeLite, the new mapBlock is able to process 1.7x more blocks.

Signed-off-by: Senthilnathan <cendhu@gmail.com>
Pull Request #316: Introduce UnmarshalEnvelopeLite to speed up mapBlock

87 of 109 new or added lines in 2 files covered. (79.82%)

12 existing lines in 6 files now uncovered.

9054 of 10113 relevant lines covered (89.53%)

1.3 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
82.81
0.55% service/sidecar/mapping.go
14
83.84
-8.47% utils/serialization/envelope.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
86.59
-1.22% loadgen/adapters/sigverifier.go
1
73.47
-2.04% utils/utils.go
2
88.2
-0.62% mock/orderer.go
2
93.15
-0.81% service/coordinator/coordinator.go
2
94.95
1.83% service/coordinator/signature_verifier_manager.go
4
93.16
-1.71% service/vc/validator_committer_service.go
Jobs
ID Job ID Ran Files Coverage
1 unit-test - 22626069477.1 03 Mar 2026 01:57PM UTC 70
66.99
GitHub Action Run
2 db-test - 22626069477.2 03 Mar 2026 01:56PM UTC 114
84.04
GitHub Action Run
Source Files on build 22626069477
  • Tree
  • List 114
  • Changed 15
  • Source Changed 0
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #316
  • PR Base - main (#22625636605)
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