diff --git a/.formatter.exs b/.formatter.exs index d2cda26..e5c75e5 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -1,4 +1,4 @@ # Used by "mix format" [ - inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] + inputs: ["{mix,.formatter}.exs", "{benchmark,config,lib,test}/**/*.{ex,exs}"] ] diff --git a/benchmark/exneus_benchmark.exs b/benchmark/exneus_benchmark.exs index ec1285f..05b92e1 100644 --- a/benchmark/exneus_benchmark.exs +++ b/benchmark/exneus_benchmark.exs @@ -33,13 +33,17 @@ defmodule Exneus.Benchmark do {Benchee.Formatters.Console, comparison: true, extended_statistics: false} ] ++ if opts[:graph] do - [{Benchee.Formatters.HTML, file: Path.expand("./report/#{label}/graph/#{label}.html", __DIR__)}] + [ + {Benchee.Formatters.HTML, + file: Path.expand("./report/#{label}/graph/#{label}.html", __DIR__)} + ] else [] end ++ if opts[:markdown] do [ - {Benchee.Formatters.Markdown, file: Path.expand("./report/#{label}/markdown/#{label}.md", __DIR__)} + {Benchee.Formatters.Markdown, + file: Path.expand("./report/#{label}/markdown/#{label}.md", __DIR__)} ] else [] diff --git a/benchmark/exneus_decode_benchmark.exs b/benchmark/exneus_decode_benchmark.exs index 143c939..94f75ed 100644 --- a/benchmark/exneus_decode_benchmark.exs +++ b/benchmark/exneus_decode_benchmark.exs @@ -9,20 +9,20 @@ jobs = %{ "JSON" => &JSON.decode!/1, "jsone" => &:jsone.decode/1, "jsx" => &:jsx.decode/1, - "jiffy" => &:jiffy.decode/1, + "jiffy" => &:jiffy.decode/1 } data = [ - "Blockchain", - #"Giphy", - #"GitHub", - #"GovTrack", - #"Issue 90", - #"JSON Generator (Pretty)", - #"JSON Generator", - #"Pokedex", - #"UTF-8 escaped", - #"UTF-8 unescaped" + "Blockchain" + # "Giphy", + # "GitHub", + # "GovTrack", + # "Issue 90", + # "JSON Generator (Pretty)", + # "JSON Generator", + # "Pokedex", + # "UTF-8 escaped", + # "UTF-8 unescaped" ] inputs = @@ -37,12 +37,12 @@ Exneus.Benchmark.run( jobs, inputs, %{ - #markdown: true, - graph: true, - #save: true, - #parallel: 1, - #warmup: 5, - #time: 5, - #memory_time: 1, + # markdown: true, + graph: true + # save: true, + # parallel: 1, + # warmup: 5, + # time: 5, + # memory_time: 1, } ) diff --git a/benchmark/exneus_encode_benchmark.exs b/benchmark/exneus_encode_benchmark.exs index 8460707..515d8e7 100644 --- a/benchmark/exneus_encode_benchmark.exs +++ b/benchmark/exneus_encode_benchmark.exs @@ -9,18 +9,18 @@ jobs = %{ "JSON" => &JSON.encode!/1, "jsone" => &:jsone.encode/1, "jsx" => &:jsx.encode/1, - "jiffy" => &:jiffy.encode/1, + "jiffy" => &:jiffy.encode/1 } data = [ - "Blockchain", - #"Giphy", - #"GitHub", - #"GovTrack", - #"Issue 90", - #"JSON Generator", - #"Pokedex", - #"UTF-8 unescaped" + "Blockchain" + # "Giphy", + # "GitHub", + # "GovTrack", + # "Issue 90", + # "JSON Generator", + # "Pokedex", + # "UTF-8 unescaped" ] inputs = @@ -36,12 +36,12 @@ Exneus.Benchmark.run( jobs, inputs, %{ - #markdown: true, - graph: true, - #save: true, - #parallel: 1, - #warmup: 5, - #time: 5 - #memory_time: 1, + # markdown: true, + graph: true + # save: true, + # parallel: 1, + # warmup: 5, + # time: 5 + # memory_time: 1, } )