Demo project to demonstrate the effects of false-sharing
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/java/name/mitterdorfer/sharing
.gitignore
README.md
benchmark-result.csv
build.gradle
graph.r

README.md

False Sharing

This is a small demo project for the accompanying blog post False Sharing. It contains a microbenchmark to demonstrate the effects of false sharing and its mitigation with @Contended.

Getting Started

Prerequisites

The project requires at least JDK 8 and Gradle 2.0.

Installation and Usage

git clone https://github.com/danielmitterdorfer/false-sharing.git
cd false-sharing
gradle shadow
java -jar build/libs/false-sharing-0.1.0-all.jar -rf csv -rff false-sharing.csv

License

'False Sharing' is distributed under the terms of the Apache Software Foundation license, version 2.0.