Skip to content

Commit

Permalink
Add precompile used in ttf benchmark (#3687)
Browse files Browse the repository at this point in the history
* Add precompile used in ttf benchmark

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.

* dont nightly
  • Loading branch information
SimonDanisch authored Mar 7, 2024
1 parent f830393 commit 14b65a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/compilation-benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
- uses: julia-actions/setup-julia@v1
with:
version: '1'
include-all-prereleases: true
arch: x64
- uses: julia-actions/cache@v1
- name: Benchmark
Expand Down
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 14b65a0

Please sign in to comment.