Event-driven simulation occurs in two phases:
-
Scheduling requests. For example,
schedule_lenet_requests()
does this by scheduling a particular number of requests with an even "interarrival" time between each's initiation. -
Simulating the schedule.
Simulator.simulate()
will act out the requests at their specified times and return their average completion time.
Run python3 lenet_plot.py
to generate plot of average request completion times over different interarrival lengths.