Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.1K
Views
how to open multiple puppeteer instances without effecting it's speed

so what happening to me is when i open 1 puppeteer instance it would go fast a but the more i open the more time it need to load the URL + fill information is that a normal thing ?

const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.goto('https://example.com');
  await page.screenshot({ path: 'example.png' });

  await browser.close();
})();
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Answer

Performance of

  1. multiple pupeteer instances and
  2. running on the same machine and
  3. testing a single application

is highly dependent on the performance of your machine (4 cored , 8 threads , corei7 7700hq)

On my local setup I could not run more than 10 parallel instances and the performance drop was noticeable the more instances I've launched.

My Story

I have faced similar challenge, when I was trying to simulate multiple users using the same application in parallel.

I know: pupeteer (and/or) similar ui-test-automation tools are not good tools for stresstesting your application; or that: there are better tools for that.

Nevertheless, my case was:

  1. Run "user-like" behavior
  2. From the other end of the world
  3. Collect HAR files - that represent network timings of the browser interacting with 10-20 different systems
  4. Analyze the behavior

My approach was - maybe this helps you:

  1. Create a puppeteer test
  2. Enable headless running
  3. Make it triggerable via curl
  4. Dockerize it
  5. Run the docker image on 10 different machines (5-10 dockerized pupeteer tests/machine)
  6. Trigger them all at once via curl

plantuml pupeteer usage scenario

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!