Skip to content

Measure the first response time for executables exposing an HTTP endpoint

Notifications You must be signed in to change notification settings

soufianesakhi/first-response-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

The first-response-time.js script can be used to collect the first response time also known as the time to first request.

The script executes a command and makes requests to a specific URL in 100 ms intervals until it receives the 200 HTTP status code with a response body.

The script finally prints out the duration between the command execution and the time it received the 200 status.

Installation

  1. Install Node.js with npm
  2. Run npm i -g first-response-time

Usage

first-response-time "<COMMAND>" <URL>

<COMMAND> a correctly escaped system command. <URL> request url.

About

Measure the first response time for executables exposing an HTTP endpoint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published