I'm doing a scraping project and need to use a browser to load javascript on websites that I visit.
If using just http I can get up to 150/second on an m4.large. Which has 2 cpus. On initial tests using headless chrome its so much slower around 4 / second and typically the bottleneck is CPU not RAM. For many web pages basic http is fine but increasingly its not with single page apps etc.
Does anyone have some experience doing something similar? What were you able to achieve? What was the stack you used e.g. python, selenium, headless chrome and multiprocessing. Did you have to alter the configuration of chrome?

