aboutsummaryrefslogtreecommitdiff
path: root/analysis/vis.livemd
diff options
context:
space:
mode:
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