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

pions / srtp / 67
41%
master: 41%

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

pending completion
67

push

travis-ci

kixelated
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.

311 of 768 relevant lines covered (40.49%)

10.45 hits per line

Jobs
ID Job ID Ran Files Coverage
1 67.1 (GO111MODULE=on) 05 Mar 2019 12:40AM UTC 0
40.49
Travis Job 67.1
Source Files on build 67
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #67
  • 6e3f98ac on github
  • Prev Build on optimize-write-rtp (#51)
  • Next Build on optimize-write-rtp (#86)
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