Skip to content

Commit

Permalink
Add precompile used in ttf benchmark
Browse files Browse the repository at this point in the history
I noticed in #3681, that we dont actually have the exact statement from ttf precompile in here.
This should be in here, since it should test if everything is cached and precompiled correctly.
If we want to benchmark compile speed in general without caching, we would need to add some other benchmark, since without this statement, this is neither benchmarking pure precompiled performance, nor pure compilation time.
  • Loading branch information
SimonDanisch committed Mar 7, 2024
1 parent f830393 commit a87af2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions precompile/shared-precompile.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# File to run to snoop/trace all functions to compile
using GeometryBasics

@compile scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)

@compile poly(Recti(0, 0, 200, 200), strokewidth=20, strokecolor=:red, color=(:black, 0.4))

@compile scatter(0..1, rand(10), markersize=rand(10) .* 20)
Expand Down

0 comments on commit a87af2e

Please sign in to comment.