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

PragTob / benchee / 517
95%
master: 94%

Build:
Build:
LAST BUILD BRANCH: relative-statistics
DEFAULT BRANCH: master
Ran 30 Aug 2017 10:32AM 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
517

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%)

29294.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 517.1 30 Aug 2017 10:32AM UTC 0
94.57
Travis Job 517.1
2 517.2 30 Aug 2017 10:33AM UTC 0
94.57
Travis Job 517.2
3 517.3 30 Aug 2017 10:33AM UTC 0
94.89
Travis Job 517.3
4 517.4 30 Aug 2017 10:33AM UTC 0
94.89
Travis Job 517.4
5 517.5 30 Aug 2017 10:33AM UTC 0
94.89
Travis Job 517.5
6 517.6 30 Aug 2017 10:35AM UTC 0
94.89
Travis Job 517.6
7 517.7 30 Aug 2017 10:34AM UTC 0
94.89
Travis Job 517.7
8 517.8 30 Aug 2017 10:34AM UTC 0
94.89
Travis Job 517.8
Source Files on build 517
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #517
  • f0b56561 on github
  • Next Build on Issue-53 (#519)
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