benchmarks/rufus_decision.rb in csv_decision-0.2.0 vs benchmarks/rufus_decision.rb in csv_decision-0.3.0

- old
+ new

@@ -11,10 +11,18 @@ CSV_OPTIONS = { regexp_implicit: true }.freeze RUFUS_OPTIONS = { open_uri: false, ruby_eval: false }.freeze benchmarks = [ { - name: 'String compares only (no index)', + name: 'String compares only with index', + data: 'index_example.csv', + input: { 'topic' => 'politics', 'region' => 'Arctic' }, + # Expected results for first_match and accumulate + first_match: { 'team_member' => 'Henry' }, + accumulate: { 'team_member' => ['Henry', 'Zach'] } + }, + { + name: 'String compares only', data: 'simple_example.csv', input: { 'topic' => 'culture', 'region' => 'America' }, # Expected results for first_match and accumulate first_match: { 'team_member' => 'Zach' }, accumulate: { 'team_member' => 'Zach' }