Skip to content

Commit

Permalink
📈 Fix benchmark string encoding
Browse files Browse the repository at this point in the history
The UTF-8 benchmark fails without this.
  • Loading branch information
nevans committed Nov 18, 2023
1 parent e86c340 commit d9b7164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rakelib/benchmarks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ file "benchmarks/parser.yml" => PARSER_TEST_FIXTURES do |t|

benchmarks = tests.map {|fixture_name, response|
{"name" => fixture_name.delete_prefix("test_"),
"prelude" => "response = %s" % [response.dump],
"prelude" => "response = -%s.b" % [response.dump],
"script" => "parser.parse(response)"}
}
.sort_by { _1["name"] }
Expand Down

0 comments on commit d9b7164

Please sign in to comment.