Page MenuHomePhabricator

Benchmark function calls with/without memoization
Closed, ResolvedPublic

Description

If cache key creation makes memoization, on average, more expensive than just running a function call, it's not worth doing. We need to create a suite of tests to measure medium-scale runtime with and without memoization.

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Add very basic benchmark comparison script.repos/abstract-wiki/wikifunctions-usage-analytics!2apineapine-benchmarkmain
Add benchmarking code.repos/abstract-wiki/wikifunctions-usage-analytics!1apineapine-benchmarkmain
Customize query in GitLab

Event Timeline

We still need to actually run this code, but the scripts are ready for basic benchmarking.

Do we want this to be more elaborate, with graphs/visualizations?

DSantamaria changed the task status from Open to In Progress.Sep 5 2026, 2:39 PM