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

pions / srtp / 68 / 1
41%
master: 41%

Build:
Build:
LAST BUILD BRANCH: optimize-new-ctr
DEFAULT BRANCH: master
Ran 05 Mar 2019 12:41AM UTC
Files 10
Run time 2s
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

05 Mar 2019 12:39AM UTC coverage: 40.495% (-1.3%) from 41.842%
GO111MODULE=on

Pull #14

travis-ci

web-flow
Optimize WriteRTP and new interface

The old EncryptRTP API causes an extra header Unmarshal and payload
Marshal. By passing the `*rtp.Packet` through the stack, we're able to
avoid both of these.

There was also an extra reallocation caused by using append.

```
name                 old time/op  new time/op  delta
EncryptRTP-8         1.94µs ± 3%  1.94µs ± 3%    ~
EncryptRTPInPlace-8  1.89µs ± 3%  1.89µs ± 4%    ~
DecryptRTP-8         1.80µs ± 3%  1.83µs ± 7%    ~
Write-8              1.95µs ± 8%  1.93µs ± 1%   ~
WriteRTP-8           2.11µs ± 6%  2.01µs ± 8%  -4.71%
```

The new WriteRTP/EncryptRTP API matches the new webrtc API.
Pull Request #14: Optimize WriteRTP and new interface

311 of 768 relevant lines covered (40.49%)

10.45 hits per line

Source Files on job 68.1 (GO111MODULE=on)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 56
  • Travis Job 68.1
  • eb0727e4 on github
  • Prev Job for GO111MODULE=on on optimize-write-rtp (#59.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