Skip to content

Commit

Permalink
Fix the benchmarks and update locations, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlouis committed Apr 13, 2015
1 parent 6dfbb23 commit f387712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/bench.erl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-export([jsx/0, msgpack/0]).

-define(ROUNDS, 300).
-define(DATA, "../../transit-format/examples/0.8/example.json").
-define(DATA, "../transit-format/examples/0.8/example.json").

run(Format) ->
run(Format, ?DATA).
Expand Down Expand Up @@ -89,7 +89,7 @@ jsx(N, Data) ->
msgpack() ->
{ok, Data} = file:read_file(?DATA),
R = transit:read(Data),
W = transit:write(R, [{format, msgpack}]),
W = transit:write(R, #{ format => msgpack }),
{Timing, _} = timer:tc(fun() -> msgpack(?ROUNDS, W) end),
Timing / ?ROUNDS.

Expand Down

0 comments on commit f387712

Please sign in to comment.