Model: 1,000 videos · finite Zipf popularity, exponent 0.8 · 5 ms cache hits · 80 ms cache misses. These are assigned virtual delays; the animation speed is only the demonstration pace.
Set up the cache
The cache holds the C most popular videos.Changing C instantly reclassifies the same saved requests, including the curve and table. It does not create a new random stream.
Ready. Start the live simulation or run all 100,000 requests immediately.
Requests sampled
Simulated hit ratio
Analytical hit ratio
Simulated mean delay
Does the simulation converge?
C = 100Random variation is expected. More samples usually bring the estimate closer to the exact probability.
Latest request
WAITINGAt fast paces this panel shows the most recent request in the displayed batch, not every individual request.
Compare the assignment cache sizes
| Cache size (videos) | Analytical hit ratio | Simulated hit ratio | Analytical delay (ms) | Simulated delay (ms) |
|---|
Every row uses the same sampled request stream. The highlighted row is the current C; a custom C adds a row. Delay is the model's per-request delay, not elapsed execution time.
Reproducibility: this offline browser demo uses the seeded Mulberry32 pseudorandom generator and inverse-CDF sampling on ranks 1–1,000. The Python report simulation uses a different seeded generator, so individual results can differ while estimating the same model. The catalogue, popularity and cache contents are fixed; this demonstration does not model cache replacement, video sizes, queueing or a real network. No files or data are sent anywhere.