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

PragTob / benchee / 528 / 4
95%
master: 94%

Build:
Build:
LAST BUILD BRANCH: relative-statistics
DEFAULT BRANCH: master
Ran 30 Aug 2017 11:21AM UTC
Files 23
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

30 Aug 2017 11:16AM UTC coverage: 94.904%. Remained the same
528.4

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

298 of 314 relevant lines covered (94.9%)

3045.62 hits per line

Source Files on job 528.4
  • Tree
  • List 0
  • Changed 10
  • Source Changed 1
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 528
  • Travis Job 528.4
  • 7a5a087d on github
  • Prev Job for on Issue-53 (#525.8)
  • Next Job for on Issue-53 (#538.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