dimo414 / bash-cache

Transparent caching layer for bash functions; particularly useful for functions invoked as part of your prompt.
GNU General Public License v3.0
73 stars 4 forks source link

Benchmark function #7

Closed dimo414 closed 6 years ago

dimo414 commented 6 years ago

Original report by Michael Diamond (Bitbucket: dimo414).


E.g. bc::benchmark foo should time foo and bc::orig::foo in different states (cold, stale, warm) to help users determine whether caching is valuable. Maybe run in a subshell and create a cache for foo there so foo can be tested without caching it first.

dimo414 commented 6 years ago

Original comment by Michael Diamond (Bitbucket: dimo414).


Introduce a benchmark function, resolves #7.