Skip to content

Tests the performance of accessing a static with a mutex to get data vs using a dedicated task and treating it as a pseudo db

Notifications You must be signed in to change notification settings

RockyGitHub/Async-Static-Mutex-vs-Task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Benchmark tokio tasks that have a dedicated task to serving data from some structure, or accessing that data via a singleton and mutex's

It might not be super representative, please let me know if flaws you see between the two tests!

The pattern is inspired by the documentation page on tokio's main website, https://tokio.rs/tokio/tutorial/channels

It goes over a Get, Set example that is perfect for countering the need for shared Mutex references

About

Tests the performance of accessing a static with a mutex to get data vs using a dedicated task and treating it as a pseudo db

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages