Repository navigation
Persistence
eregon edited this page Jul 7, 2012
·
5 revisions
- necessary for history comparisons
- allows to reuse data a nice way (by keeping at least last run results):
perfer run bench_sort perfer report bench_sort perfer graph bench_sort
Dimensions:
- benchmark: version (md5?), file (should be "relocatable" if absolute path), job, project (detected by folder containing .git?)
- time: which code/implementation it ran on (commit hash or "working directory version")
- hardware
on_change:
- benchmark code: either merge or remove old data OR manage bench versions
- implementation code: should manage with impl code commit hash change (overwrite last if working dir version? (=> ctime?) )
- hardware change: should still allow comparison, but not mix results by default
Where to save?
- ~/.perfer: avoid generated files in project dir (persist if repo deleted, better for multi-repos)
- in project bench{,mark}/results (has to be git-ignored, but easy to find and keep around, always relative paths to bench{,mark} dir?)
Format:
- plain ruby Hashes, one per line (but lot of space wasted, no explicit results grouping)
- group them, and add a header before each set of results
- or inline results in Arrays (but grouping by result less clear, and never-ending-line)
Typical use cases:
- new user: a few benches, mostly last results, but then maybe compare a few versions (does not want too much setup like git and config files)
- CLI guru: do everything in "-e" (does not want any setup at all)
- ruby implementation dev: perf history across versions, commits
- library developer: keep benchmarks in bench/, run regularly, perf history