Skip to content

Commit

Permalink
Update benchmarking libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed Aug 1, 2019
1 parent 45c7f48 commit a4461cc
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 20 deletions.
21 changes: 18 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Language flags.
language: elixir

# OS matrix.
os:
- linux

# Version matrix (language).
elixir:
- 1.9
- 1.8
Expand All @@ -10,14 +15,18 @@ elixir:
- 1.4
- 1.3
- 1.2

# Version matrix (OTP).
otp_release:
- 22.0
- 21.3
- 20.3
- 19.3
- 18.3
env:

# Matrix modifications.
matrix:
# Additional builds.
include:
- elixir: 1.9
otp_release: 22.0
Expand All @@ -31,6 +40,8 @@ matrix:
otp_release: 22.0
script:
- mix bench

# Incompatible pairs.
exclude:
- elixir: 1.9
otp_release: 19.3
Expand Down Expand Up @@ -75,17 +86,21 @@ matrix:
- elixir: 1.2
otp_release: 18.3
allow_failures:
- elixir: 1.8
otp_release: 21.3
- elixir: 1.9
otp_release: 22.0
script:
- mix bench
branches:
only:
- master

# Environment setup.
before_install:
- epmd -daemon
- mix local.hex --force
- mix local.rebar --force
- mix deps.get

# Test commands.
script:
- mix test --trace
24 changes: 13 additions & 11 deletions benchmarks/main.exs
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,20 @@ benchmarks = %{
}

Benchee.run(benchmarks, [
console: [
comparison: false,
extended_statistics: true
],
formatters: [
Benchee.Formatters.Console,
Benchee.Formatters.HTML
],
formatter_options: [
html: [
auto_open: false
]
{
Benchee.Formatters.Console,
[
comparison: false,
extended_statistics: true
]
},
{
Benchee.Formatters.HTML,
[
auto_open: false
]
}
],
print: [
fast_warning: false
Expand Down
12 changes: 6 additions & 6 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ defmodule Cachex.Mixfile do
{ :sleeplocks, "~> 1.1" },
{ :unsafe, "~> 1.0" },
# Testing dependencies
{ :excoveralls, "~> 0.8", optional: true, only: [ :cover ] },
{ :local_cluster, "~> 1.0", optional: true, only: [ :cover, :test ] },
{ :excoveralls, "~> 0.11", optional: true, only: [ :cover ] },
{ :local_cluster, "~> 1.1", optional: true, only: [ :cover, :test ] },
# Linting dependencies
{ :credo, "~> 0.8", optional: true, only: [ :lint ] },
{ :credo, "~> 1.1", optional: true, only: [ :lint ] },
# Benchmarking dependencies
{ :benchee, "~> 0.14", optional: true, only: [ :bench ] },
{ :benchee_html, "~> 0.6", optional: true, only: [ :bench ] },
{ :benchee, "~> 1.0", optional: true, only: [ :bench ] },
{ :benchee_html, "~> 1.0", optional: true, only: [ :bench ] },
# Documentation dependencies
{ :ex_doc, "~> 0.16", optional: true, only: [ :docs ] }
{ :ex_doc, "~> 0.21", optional: true, only: [ :docs ] }
]
end
end

0 comments on commit a4461cc

Please sign in to comment.