Skip to content

Commit

Permalink
Add applyMerge max [1..] [1..] to benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
pgujjula committed May 10, 2024
1 parent 782616a commit a7860a1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bench/Bench/ApplyMerge.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ benchmarks =
funcToBenchmark
"double linear shape: applyMerge min [1..] [1..]"
min,
funcToBenchmark
"box shape: applyMerge max [1..] [1..]"
max,
funcToBenchmark
"triangular shape: applyMerge (+) [1..] [1..]"
(+),
Expand Down
21 changes: 21 additions & 0 deletions docs/Benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,27 @@ We benchmark the performance of the `applyMerge` implementations on different
. * * * * * * * * * * * * * *
</details>

* Box: `applyMerge max [1..] [1..]`
<details>
<summary>Shape</summary>

. . . . . . . * * * * * * * *
. . . . . . . * * * * * * * *
. . . . . . . * * * * * * * *
. . . . . . . * * * * * * * *
. . . . . . . * * * * * * * *
. . . . . . . * * * * * * * *
. . . . . . . * * * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
</details>

* Triangular `applyMerge (+) [1..] [1..]`
<details>
<summary>Shape</summary>
Expand Down

0 comments on commit a7860a1

Please sign in to comment.