Skip to content

abdullahb53/powerofsingleport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

powerofsingleport

[TEST] SinglePort vs MultiPort

Pinning ports to workers is not good idea. When the consumer queue is full, other workers cannot steal busy worker's consumer queue data. In this case the queue has to wait pinned worker which is assigned to itself. Maybe in application level you can attemp to steal other worker's data but that approach will cost you more context-switch. Using one port let the workers to handle scheduling(in this test we let the golang to do that).

This test shows us the power of singleport against multiport.

make test

powerofsingleport2

powerofsingleport

About

This test shows us that using singleport is more efficent than pinning ports to workers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published