Skip to content

Express Webserver that provides a large file to test network throughput from its host

License

Notifications You must be signed in to change notification settings

taylorsmcclure/nodejs-network-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Network Throughput Test via Webserver (Express)

Objective

Create a simple to install/use webserver to serve an arbitrarily large file. A client can then request the file to test the network throughput.

Tech

  • NodeJS
  • Express

Usage

npm install

node server.js

Config

nodeListen: The address you want the webserver to listen on on 0.0.0.0 for all interfaces, 192.x.x.x for private, or 127.0.0.1 for loopback only.

nodePort: What port you want to use for incomming connections. 8080 by default.

fileName: Name of the file that you want generated.

fileSize: How large you want the file to be (in bytes).

{
  "nodeListen": "0.0.0.0",
  "nodePort": "8080",
  "fileName": "bigfile.html",
  "fileSize": 4294967296
}

About

Express Webserver that provides a large file to test network throughput from its host

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published