aboutsummaryrefslogtreecommitdiff
path: root/analysis/vis.livemd
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-03-08 15:06:57 +0000
committerAria Shrimpton <me@aria.rip>2024-03-08 16:23:17 +0000
commit3fa33f01ef15fb774d8f475bca2ed153d837b41f (patch)
tree67cf4eb690ea2adfee1314b4f1e266eaa218c287 /analysis/vis.livemd
parentbe7b198cb609475e0094240b84bf955f8d53bc2b (diff)
start results chapter
Diffstat (limited to 'analysis/vis.livemd')
-rw-r--r--analysis/vis.livemd23
1 files changed, 15 insertions, 8 deletions
diff --git a/analysis/vis.livemd b/analysis/vis.livemd
index 9f5a58d..044e41f 100644
--- a/analysis/vis.livemd
+++ b/analysis/vis.livemd
@@ -96,9 +96,9 @@ cost_models
## Cost model exploratory plots
```elixir
-startn = 100
-endn = 5000
-resolution = 50
+startn = 1000
+endn = 60_000
+resolution = 100
points_for = fn impl, op ->
%{"coeffs" => [coeffs]} =
@@ -127,11 +127,14 @@ end
<!-- livebook:{"reevaluate_automatically":true} -->
```elixir
-# inspect_op = "insert"
-# impls = ["BTreeSet", "EagerSortedVec", "HashSet"]
+set_impls = ["BTreeSet", "SortedUniqueVec", "HashSet"]
+mapping_impls = ["HashMap", "BTreeMap"]
+list_impls = ["Vec", "LinkedList", "SortedVec"]
+stack_impls = ["Vec", "LinkedList"]
-inspect_op = "pop"
-impls = ["Vec", "LinkedList"]
+inspect_op = "insert"
+# impls = set_impls ++ list_impls
+impls = mapping_impls
Tucan.layers([
cost_models
@@ -154,9 +157,13 @@ Tucan.layers([
clip: true
)
])
+|> Tucan.Axes.set_y_title("Estimated cost")
+|> Tucan.Axes.set_x_title("Size of container (n)")
|> Tucan.Scale.set_x_domain(startn, endn)
|> Tucan.Scale.set_y_domain(0, 200)
-|> Tucan.set_size(500, 500)
+|> Tucan.set_size(500, 250)
+|> Tucan.Legend.set_title(:color, "Implementation")
+|> Tucan.Legend.set_orientation(:color, "bottom")
```
## Read benchmark data