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

nats-io / nats-server / 10714005321
83%

Build:
DEFAULT BRANCH: main
Ran 05 Sep 2024 05:37AM UTC
Jobs 1
Files 56
Run time 21min
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.143% (-0.09%) from 85.228%
10714005321

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>

66336 of 77911 relevant lines covered (85.14%)

1106301.79 hits per line

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