leapmemory/memory-bench — explained in plain English
Analysis updated 2026-05-18
Measure real token savings from using a memory service instead of pasting chat history.
Check whether a memory system's recall accuracy matches pasting full context.
Run the benchmark against your own exported conversation history.
Compare token costs as conversations grow longer.
| leapmemory/memory-bench | 0xallam/my-recipe | 0xhassaan/nn-from-scratch | |
|---|---|---|---|
| Stars | 0 | — | 0 |
| Language | Python | Python | Python |
| Last pushed | — | 2022-11-22 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | moderate | moderate | moderate |
| Complexity | 2/5 | 2/5 | 4/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a LeapMemory account with prepaid credits and a model provider API key.
memory-bench is an open benchmark tool for testing whether an AI memory service called LeapMemory actually saves on cost and effort compared to the common approach of pasting a full conversation history into an AI model every time. The comparison works by asking the exact same question twice under two conditions: once with the entire past conversation pasted in as context, and once using only a single relevant memory returned by LeapMemory. Both answers are checked against a known correct answer, and only questions that both approaches answer correctly count toward the final comparison, which the project says prevents a memory failure from being hidden in the numbers. The results show real token savings, growing larger as conversations get longer, since pasting the full history grows with every turn while the memory-based approach stays roughly the same size no matter how long the conversation gets. In the tests reported, the memory-based approach used significantly fewer tokens than pasting full history while matching accuracy exactly. The tool tests direct factual recall, such as names, numbers, dates, and one changed fact, not deeper reasoning, contradiction handling across many facts, or performance after months of real use, and the author states these gaps plainly rather than hiding them. Running the tool yourself requires signing up for a LeapMemory account, creating an API key, adding a small amount of prepaid credit, and running a provided Python script against either a public sample conversation or your own exported chat history. The project is written in Python and released under the MIT license, meaning it can be freely used, copied, and modified, including for commercial purposes.
An open benchmark tool that measures how many fewer tokens LeapMemory's recall uses compared to pasting full conversation history, at matched accuracy.
Mainly Python. The stack also includes Python.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.