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

PragTob / benchee / 517 / 6
95%
master: 94%

Build:
Build:
LAST BUILD BRANCH: relative-statistics
DEFAULT BRANCH: master
Ran 30 Aug 2017 10:35AM UTC
Files 23
Run time 3s
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

30 Aug 2017 10:31AM UTC coverage: 94.888%. First build
517.6

push

travis-ci

devonestes
Define behaviour for a formatter and output in parallel

In this commit I'm defining a behaviour for a Benchee Formatter, which
consistes of three functions:

* format/1 which takes a Benchee.Suite struct and formats results
* write/1 which takes the output from format/1 and writes it either to
a file or to the console, and
* output/1 which basically just calls `format/1` and then `write/1` and
returns the Benchee.Suite struct it was given.

I don't see why we can't eventually remove the `output/1` callback from
this behaviour once we've switched over to using `parallel_output/2`
and once we've implemented this behaviour in all the other formatters.

I also wrote a function that can do as much in parallel as possible for
formatting. We can't write the output in parallel, but we can generate
the output in parallel, so we're doing that here.

I haven't switched over to actually using this new function to do the
formatting in parallel, but we can do that in a later commit.

Resolves #53

297 of 313 relevant lines covered (94.89%)

5215.17 hits per line

Source Files on job 517.6
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 517
  • Travis Job 517.6
  • f0b56561 on github
  • Next Job for on Issue-53 (#519.8)
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