GoogleChromeLabs / carlo

Web rendering surface for Node applications
Apache License 2.0
9.32k stars 309 forks source link

Chrome takes 6s to load when not specifying executable path #165

Open ghost opened 4 years ago

ghost commented 4 years ago
const launchOptions = { width: 500, height: 400, executablePath: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" };
const startTime = new Date().getTime();
const app = await carlo.launch(launchOptions);
const launchTime = new Date().getTime() - startTime;

This takes <1s to launch

const launchOptions = { width: 500, height: 400" };
const startTime = new Date().getTime();
const app = await carlo.launch(launchOptions);
const launchTime = new Date().getTime() - startTime;

This takes 6s to launch