Skip to content

Commit

Permalink
🧩 [layout]
Browse files Browse the repository at this point in the history
  • Loading branch information
rolyp committed Oct 26, 2023
1 parent 5de059e commit 5de6d23
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions test/Util.purs
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,16 @@ testTrace s γα spec@{ δv } = do

{ gc: GC eval, v } <- do
GC desug <- desugGC s
let e = desug.fwd s
γ = erase <$> γα
let
e = desug.fwd s
γ = erase <$> γα
benchmark (method <> "-Eval") $ \_ -> traceGC γ e

γ𝔹 × e𝔹 × _ <- do
let v𝔹 = δv (botOf v)
unless (isGraphical v𝔹) $
when logging $ logAs "Selection for bwd" (prettyP v𝔹)
unless (isGraphical v𝔹)
$ when logging
$ logAs "Selection for bwd" (prettyP v𝔹)
benchmark (method <> "-Bwd") $ \_ -> pure (eval.bwd v𝔹)

GC desug𝔹 <- desugGC s
Expand All @@ -118,8 +120,9 @@ testGraph s gconfig spec@{ δv } benchmarking = do
let e = desug.fwd s
benchmark (method <> "-Eval") $ \_ -> graphGC gconfig e

let v𝔹 = δv (botOf vα)
αs_out = selectαs v𝔹
let
v𝔹 = δv (botOf vα)
αs_out = selectαs v𝔹
αs_in <- benchmark (method <> "-Bwd") $ \_ -> pure (eval.bwd αs_out)
let e𝔹 = select𝔹s eα αs_in

Expand Down

0 comments on commit 5de6d23

Please sign in to comment.