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

PragTob / benchee / 521
95%
master: 94%

Build:
Build:
LAST BUILD BRANCH: relative-statistics
DEFAULT BRANCH: master
Ran 30 Aug 2017 10:45AM UTC
Jobs 8
Files 23
Run time 2min
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
521

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

4 of 4 new or added lines in 2 files covered. (100.0%)

297 of 313 relevant lines covered (94.89%)

24883.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 521.1 30 Aug 2017 10:45AM UTC 0
94.57
Travis Job 521.1
2 521.2 30 Aug 2017 10:45AM UTC 0
94.57
Travis Job 521.2
3 521.3 30 Aug 2017 10:45AM UTC 0
94.89
Travis Job 521.3
4 521.4 30 Aug 2017 10:45AM UTC 0
94.89
Travis Job 521.4
5 521.5 30 Aug 2017 10:46AM UTC 0
94.89
Travis Job 521.5
6 521.6 30 Aug 2017 10:47AM UTC 0
94.89
Travis Job 521.6
7 521.7 30 Aug 2017 10:47AM UTC 0
94.89
Travis Job 521.7
8 521.8 30 Aug 2017 10:47AM UTC 0
94.89
Travis Job 521.8
Source Files on build 521
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #521
  • 54eb8d1e on github
  • Prev Build on Issue-53 (#519)
  • Next Build on Issue-53 (#523)
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