Skip to content

Use a fresh cache for the benchmark iterations - #10

Merged
paulcadman merged 1 commit into
mainfrom
colder-cache
Oct 13, 2026
Merged

paulcadman merged 1 commit into
mainfrom
colder-cache

Conversation

@raoxiaojia

Copy link
Copy Markdown
Collaborator

This lets each iteration of the benchmark start from a fresh Meta cache before the warmup.

Currently iteration 2-5 inherits some Meta cache from iteration 1. This makes Meta.whnf evaluations trivial in the successive iterations.

A minimal example:

import MetaBench

set_option maxRecDepth 100000 in
#benchmark in
example : (List.range 1000).foldl (· + ·) 0 = 499500 := by decide

The current version will report that iteration 2-5 are almost free (and therefore the min...max displays a large range).

@raoxiaojia
raoxiaojia requested a review from paulcadman October 13, 2026 12:25

@paulcadman paulcadman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks -- looks good.

@paulcadman
paulcadman merged commit 083d05f into main Oct 13, 2026
2 checks passed
@raoxiaojia
raoxiaojia deleted the colder-cache branch October 13, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants