Just a note for people running this type of experiment to make sure that when using an ec2 t2 instance type, note it has burstable CPU credits by default which run out after some time where you basically get throttled (the credits accumulate back over time) (it can be configured into unlimited mode but you need to set it explicitly for t2 and it costs more)
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstabl...