Skip to content

Commit

Permalink
Fix benchmark deprecation (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
TotalVerb authored Nov 6, 2017
1 parent cfaaac3 commit d1edcf8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bench/bench.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ function bench(f, simulate=false)
end
gc() # run gc so it doesn't affect benchmarks
t = if args["parse"]["parse-file"]
tic()
JSON.parsefile(fp)
toq()
@elapsed JSON.parsefile(fp)
else
data = read(fp, String)
tic()
JSON.Parser.parse(data)
toq()
@elapsed JSON.Parser.parse(data)
end

if !simulate
Expand Down

0 comments on commit d1edcf8

Please sign in to comment.