Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Small and medium teams
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
venkateshdb
reader-writer-lock
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
reader-writer-lock
/
reference.txt
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
21 lines (20 loc) · 1.25 KB
main
Breadcrumbs
reader-writer-lock
/
reference.txt
Copy path
Top
File metadata and controls
Code
Blame
21 lines (20 loc) · 1.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Running benchmark with 1 readers, 1 writers, 10000000 items, 1000 iterations
Threads done, stats:
Readers: min 0.000024 ms, max 10.949488 ms, mean 5.810315 ms, std_dev 0.495648
Writers: min 0.000073 ms, max 5.435093 ms, mean 5.018974 ms, std_dev 0.319964
Running benchmark with 2 readers, 1 writers, 10000000 items, 1000 iterations
Threads done, stats:
Readers: min 0.000024 ms, max 16.140908 ms, mean 5.421361 ms, std_dev 1.058616
Writers: min 0.000059 ms, max 6.169256 ms, mean 5.144907 ms, std_dev 0.336740
Running benchmark with 4 readers, 1 writers, 10000000 items, 1000 iterations
Threads done, stats:
Readers: min 0.000017 ms, max 58.573823 ms, mean 6.319655 ms, std_dev 6.560581
Writers: min 0.000032 ms, max 5.755324 ms, mean 5.140075 ms, std_dev 0.464582
Running benchmark with 8 readers, 1 writers, 10000000 items, 1000 iterations
Threads done, stats:
Readers: min 0.000017 ms, max 327.465947 ms, mean 15.435797 ms, std_dev 25.058242
Writers: min 0.000036 ms, max 8.269232 ms, mean 7.627782 ms, std_dev 0.817614
Running benchmark with 16 readers, 1 writers, 10000000 items, 1000 iterations
Threads done, stats:
Readers: min 0.000019 ms, max 410.047815 ms, mean 21.322148 ms, std_dev 36.532972
Writers: min 0.000821 ms, max 44.616563 ms, mean 13.822394 ms, std_dev 6.639248
You can’t perform that action at this time.