Rakefile in panko_serializer-0.4.2 vs Rakefile in panko_serializer-0.4.3

- old
+ new

@@ -52,10 +52,16 @@ headings = ["Benchmark", "ip/s", "allocs/retained"] files.each do |benchmark_file| lines = run_process "ITEMS_COUNT=#{items_count} RAILS_ENV=production ruby #{benchmark_file}" rows = lines.map do |line| - row = JSON.parse(line) + begin + row = JSON.parse(line) + rescue JSON::ParserError + puts "> Failed parsing json" + puts lines.join + exit + end row.values end puts "\n\n" title = File.basename(benchmark_file, ".rb")