Numeric Production Mechanism
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    page-load-timerpublic

    page-load-timer

    This package uses selenium-webdriver with chromedriver to determine the average page load time for a given webpage.

    Prerequisites

    Installation

    yarn global add page-load-timer@latest

    Usage

    The page-load-timer cli accepts two arguments.

    • url - The URL of the webpage to test
    • numRequests - The number of requests to send to the URL
    page-load-timer --url=http://www.google.com --numRequests=10

    Here's what an example output would look like.

    page-load-timer --url=http://www.google.com --numRequests=10
    Starting page load timer...
    Request #1: 7104ms
    Request #2: 2088ms
    Request #3: 1301ms
    Request #4: 1365ms
    Request #5: 1354ms
    Request #6: 1330ms
    Request #7: 1399ms
    Request #8: 1512ms
    Request #9: 1386ms
    Request #10: 1306ms
    Page load timer complete
    URL: http://www.google.com
    Number of requests: 10
    Average page load time: 2014.5ms

    Keywords

    none

    install

    npm i page-load-timer

    Downloadslast 7 days

    2

    version

    0.1.4

    license

    ISC

    repository

    github.com

    last publish

    collaborators

    • avatar