Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low hanging fruit for a bit better precompile #4438

Merged
merged 6 commits into from
Oct 3, 2024
Merged

Conversation

SimonDanisch
Copy link
Member

No description provided.

@SimonDanisch SimonDanisch added the skip-changelog Skips changelog enforcer label Oct 2, 2024
@MakieBot
Copy link
Collaborator

MakieBot commented Oct 2, 2024

Compile Times benchmark

Note, that these numbers may fluctuate on the CI servers, so take them with a grain of salt. All benchmark results are based on the mean time and negative percent mean faster than the base branch. Note, that GLMakie + WGLMakie run on an emulated GPU, so the runtime benchmark is much slower. Results are from running:

using_time = @ctime using Backend
# Compile time
create_time = @ctime fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @ctime Makie.colorbuffer(display(fig))
# Runtime
create_time = @benchmark fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @benchmark Makie.colorbuffer(fig)
using create display create display
GLMakie 4.64s (4.59, 4.71) 0.05+- 108.65ms (107.24, 112.08) 1.59+- 411.04ms (409.16, 417.04) 2.69+- 9.32ms (9.22, 9.64) 0.14+- 25.74ms (25.62, 25.96) 0.13+-
master 4.63s (4.60, 4.68) 0.03+- 108.47ms (107.84, 109.56) 0.63+- 410.61ms (407.90, 412.19) 1.62+- 9.36ms (9.25, 9.63) 0.14+- 25.82ms (25.65, 26.64) 0.36+-
evaluation 1.00x invariant, 0.01s (0.27d, 0.62p, 0.04std) 1.00x invariant, 0.18ms (0.15d, 0.79p, 1.11std) 1.00x invariant, 0.43ms (0.20d, 0.72p, 2.16std) 1.00x invariant, -0.05ms (-0.31d, 0.57p, 0.14std) 1.00x invariant, -0.07ms (-0.27d, 0.63p, 0.25std)
CairoMakie 4.55s (4.48, 4.75) 0.09+- 112.10ms (109.63, 118.07) 3.44+- 169.26ms (165.63, 175.68) 4.10+- 9.15ms (8.98, 9.33) 0.15+- 1.14ms (1.13, 1.15) 0.01+-
master 4.51s (4.45, 4.60) 0.06+- 112.55ms (108.45, 122.79) 5.02+- 170.54ms (165.40, 186.25) 7.46+- 9.19ms (9.00, 9.49) 0.16+- 1.13ms (1.12, 1.15) 0.01+-
evaluation 0.99x invariant, 0.05s (0.60d, 0.28p, 0.08std) 1.00x invariant, -0.45ms (-0.10d, 0.85p, 4.23std) 1.01x invariant, -1.28ms (-0.21d, 0.70p, 5.78std) 1.00x invariant, -0.04ms (-0.25d, 0.65p, 0.15std) 0.99x invariant, 0.01ms (0.96d, 0.10p, 0.01std)
WGLMakie 5.27s (5.18, 5.37) 0.07+- 112.58ms (108.31, 121.76) 4.35+- 5.03s (4.88, 5.24) 0.13+- 11.87ms (11.43, 12.37) 0.34+- 118.42ms (114.43, 123.33) 2.82+-
master 5.15s (5.02, 5.38) 0.13+- 113.13ms (109.09, 124.28) 6.05+- 9.22s (9.01, 9.81) 0.27+- 12.24ms (11.26, 16.65) 1.97+- 118.15ms (114.25, 120.56) 2.20+-
evaluation 0.98x invariant, 0.12s (1.14d, 0.06p, 0.10std) 1.00x invariant, -0.55ms (-0.10d, 0.85p, 5.20std) 1.83x faster✅, -4.19s (-19.56d, 0.00p, 0.20std) 1.03x invariant, -0.37ms (-0.26d, 0.64p, 1.16std) 1.00x invariant, 0.26ms (0.10d, 0.85p, 2.51std)

@SimonDanisch SimonDanisch merged commit 7a47bdc into master Oct 3, 2024
18 checks passed
@SimonDanisch SimonDanisch deleted the sd/wgl-precompile branch October 3, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Skips changelog enforcer
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

2 participants