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

nats-io / nats-server / 10732563336
83%

Build:
DEFAULT BRANCH: main
Ran 06 Sep 2024 05:36AM UTC
Jobs 1
Files 56
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

04 Sep 2024 08:37PM UTC coverage: 85.111% (-0.03%) from 85.143%
10732563336

push

github

web-flow
(2.11) Add ability for IP queues to track total size (#5775)

You can optionally pass in an `ipQueue_SizeCalculation` function to an
IP queue that fires each time an item is pushed or popped so that the
total size can be tracked.

There is a slight performance impact but mostly it will depend on the
complexity of the calculation function:
```
go test -v ./server -run=XXX -bench=IPQueueSizeCalculation -benchtime=10s
goos: darwin
goarch: arm64
pkg: github.com/nats-io/nats-server/v2/server
BenchmarkIPQueueSizeCalculation
BenchmarkIPQueueSizeCalculation/WithoutCalc
BenchmarkIPQueueSizeCalculation/WithoutCalc-24          396342910               30.75 ns/op      520.35 MB/s
BenchmarkIPQueueSizeCalculation/WithEmptyCalc
BenchmarkIPQueueSizeCalculation/WithEmptyCalc-24        377004524               33.91 ns/op      471.80 MB/s
BenchmarkIPQueueSizeCalculation/WithLenCalc
BenchmarkIPQueueSizeCalculation/WithLenCalc-24          375148896               33.76 ns/op      473.99 MB/s
PASS
ok      github.com/nats-io/nats-server/v2/server        48.150s
```

Signed-off-by: Neil Twigg <neil@nats.io>

66311 of 77911 relevant lines covered (85.11%)

1026176.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10732563336.1 06 Sep 2024 05:36AM UTC 0
85.11
GitHub Action Run
Source Files on build 10732563336
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10732563336
  • 1f9d1e50 on github
  • Prev Build on main (#10714005321)
  • Next Build on main (#10748707679)
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