Skip to content

Commit

Permalink
Added asterisk to benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmaissroff committed Dec 15, 2021
1 parent e0f62a0 commit e7b1a47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Benchmarks are run in GitHub Actions, and the tables below are updated with ever

Results using Ruby 3.0.3:

|Method arguments|`Dry::Core` (0.7.1)|`Memery` (1.4.0)|
|Method arguments|`Dry::Core`\* (0.7.1)|`Memery` (1.4.0)|
|--|--|--|
|`()` (none)|0.94x|10.27x|
|`(a)`|1.98x|9.03x|
Expand Down
3 changes: 2 additions & 1 deletion benchmarks/benchmarks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ def positional_splat_keyword_and_double_splat_args(a, *args, b:, **kwargs)
# We use this mapping to get a header of the form
# "`MemoWise` (1.1.0)
gem_name_parts = benchmark_gem["name"].split
"`#{gem_name_parts[0]}` #{gem_name_parts[1][...-1]}"
asterisk = "\\*" if gem_name_parts[0] == "Dry::Core"
"`#{gem_name_parts[0]}`#{asterisk} #{gem_name_parts[1][...-1]}"
end.join("|")
puts "|Method arguments|#{benchmark_headers}|"
puts "#{'|--' * (benchmark_json.size + 1)}|"
Expand Down

0 comments on commit e7b1a47

Please sign in to comment.