https://github.com/masonm/puppeteer_cpu_throttle
Example of CPU throttling with Puppeteer
https://github.com/masonm/puppeteer_cpu_throttle
Last synced: 4 months ago
JSON representation
Example of CPU throttling with Puppeteer
- Host: GitHub
- URL: https://github.com/masonm/puppeteer_cpu_throttle
- Owner: MasonM
- Created: 2020-09-18T00:41:34.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2020-09-18T00:57:22.000Z (almost 6 years ago)
- Last Synced: 2025-05-24T01:47:43.933Z (about 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
This is a simple example of using Puppeteer with CPU throttling. The `longtask.js` script loads
https://nytimes.com in a headless Chromium instance and throttles based on the `THROTTLE`
environment variable, then dumps out all long tasks.
Example usage: `THROTTLE=4 node longtask.js`