Skip to content

Commit

Permalink
Fancy benchmarks (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Jan 27, 2025
1 parent ae8105c commit 6a1a5bf
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions benches/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,6 @@
# benchmark 1..=10^max rays/triangles
max = 4

cdict = {'red': [[0.0, 0.0, 0.0],
[0.5, 1.0, 1.0],
[1.0, 1.0, 1.0]],
'green': [[0.0, 0.0, 0.0],
[0.25, 0.0, 0.0],
[0.75, 1.0, 1.0],
[1.0, 1.0, 1.0]],
'blue': [[0.0, 0.0, 0.0],
[0.5, 0.0, 0.0],
[1.0, 1.0, 1.0]]
}

#newcmp = LinearSegmentedColormap('testCmap', segmentdata=cdict, N=256)
cmap = LinearSegmentedColormap.from_list("speedup", ["red", "white", "green"], N=256)

Expand All @@ -37,7 +25,8 @@ def plot(colormaps):
rays = mesh[it.multi_index[1]]
samples = 11
if triangles >= 100 and rays >= 100:
# these run longer so less intrinsic noise
# these run longer so less intrinsic noise; save time
# by sampling less
samples = 3
proc = Popen([
"cargo",
Expand Down

0 comments on commit 6a1a5bf

Please sign in to comment.