Skip to content

tommy351/worker-threads-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Worker Threads Test

These are some tests about the new experimental feature "Worker Threads" on Node.js 10.5.

Scripts

This script spawns 5 workers and prints data in workers.

node --experimental-worker basic.js

This script uses the classic cluster module to fork new processes.

node fork.js

This script uses MessagePort to communicate between the main thread and workers.

node --experimental-worker message.js

This script uses SharedArrayBuffer to share memory between the main thread and workers.

node --experimental-worker message.js

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors