Skip to content

raycad/nodejs-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Example for testing NodeJS performance.

1. ws-server
A websocket server example.
Switch USE_CLUSTER_MODE and USE_ASYNC in the constants.js file to enable cluster and async mode.

USE_CLUSTER_MODE: 0
USE_ASYNC: 0

$ cd ws-server $ npm install $ node main.js 

If you want to test separately with standalone & cluster modes you can use the following commands:

// Start in standalone mode $ node node.js 
// Start in cluster mode $ node cluster.js 

2. ws-client
A websocket client example.

$ cd ws-client $ npm install $ node main.js 

About

NodeJS Performance Testing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published