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

ScottMansfield / nanolog / 23
92%

Build:
DEFAULT BRANCH: master
Ran 30 Apr 2017 10:31AM UTC
Jobs 1
Files 3
Run time 0s
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
23

Pull #1

travis-ci

web-flow
Add log.Printf compatible API

This commit adds a log.Printf compatible API.

Why? Because it I can. And it also turns out that the performance
penalty is small enough, see below:

benchstat bench
name                                          time/op
ComparePrintfAndLogAndStdlib/NanologPrintf-8  152ns  3%
ComparePrintfAndLogAndStdlib/Nanolog-8        111ns  1%
ComparePrintfAndLogAndStdlib/Stdlib-8         826ns  1%

Also the memory allocation is not changed:

BenchmarkComparePrintfAndLogAndStdlib/NanologPrintf-8           10000000               153 ns/op               0 B/op          0 allocs/op
BenchmarkComparePrintfAndLogAndStdlib/Nanolog-8                 20000000               110 ns/op               0 B/op          0 allocs/op
BenchmarkComparePrintfAndLogAndStdlib/Stdlib-8                   2000000               849 ns/op              80 B/op          1 allocs/op
Pull Request #1: Add log.Printf compatible API

515 of 553 relevant lines covered (93.13%)

1609.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23.1 30 Apr 2017 10:31AM UTC 0
93.13
Travis Job 23.1
Source Files on build 23
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #23
  • Pull Request #1
  • PR Base - master (#22)
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