Tuan-Dat Tran a484d49128 fix(simulation): enhance client request process with progress tracking and refine metrics computation
- Added `tqdm` progress bar to track simulation progress in real-time.
- Improved computation of hit rates and average ages for better accuracy.
- Updated data export logic for clearer output and better insights.
Reran Experiments

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2024-11-28 15:21:56 +01:00
..

Experiments: No Refresh with variable TTL

Explanation for files in each experiment:

  • details.csv: Access Count, Hit, Miss, Mu, Lambda and Hit Rate for each object
  • hit_age.csv: Shows hit rate/average age at time of request for each object.
  • lambda_distribution.pdf: Lambda Distribution across all objects/discrete values of the Zipf distribution
  • lambda_vs_access_count.pdf: Displays the access count against lambda, expecting a higher lambda to result in a higher access count.
  • objects_in_cache_over_time.pdf: Amount of cache entries at given time.
  • overall_hit_age.csv: Cumulative description of hit_age.csv

Length of simulation doesn't change much since we're not touching the request rate across the simulations. Break condition for the simulation is when the each database object has been requested at least ACCESS_COUNT_LIMIT (i.e. 10) times.