BenchmarkMutex

BenchmarkMutex is a mutex benchmark created by Malte Skarupke.

To run this test with the Phoronix Test Suite, the basic command is: phoronix-test-suite benchmark mutex.

Project Site

github.com

Test Created

1 January 2020

Test Maintainer

Michael Larabel 

Test Type

System

Average Install Time

14 Seconds

Average Run Time

4 Minutes, 49 Seconds

Test Dependencies

C/C++ Compiler Toolchain + Google Benchmark

Accolades

10k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page Views ***OpenBenchmarking.orgEventsBenchmarkMutex Popularity Statisticspts/mutex2020.012020.032020.052020.072020.092020.112021.012021.032021.052021.072021.092021.112022.012022.032022.052022.072022.092022.112023.012023.032023.052023.072023.092023.112024.012024.0310002000300040005000
* Uploading of benchmark result data to OpenBenchmarking.org is always optional (opt-in) via the Phoronix Test Suite for users wishing to share their results publicly.
** Data based on those opting to upload their test results to OpenBenchmarking.org and users enabling the opt-in anonymous statistics reporting while running benchmarks from an Internet-connected platform.
*** Test profile page view reporting began March 2021.
Data updated weekly as of 22 April 2024.
Mutex Lock Unlock std::mutex25.6%Semaphore Release And Acquire12.3%Shared Mutex Lock Shared12.1%Mutex Lock Unlock spinlock_amd13.0%Mutex Lock Unlock spinlock12.3%Mutex Lock Unlock ticket_spinlock12.0%Mutex Lock Unlock pthread_mutex12.7%Benchmark Option PopularityOpenBenchmarking.org

Revision History

pts/mutex-1.0.0   [View Source]   Wed, 01 Jan 2020 18:38:46 GMT
Initial commit, work-in-progress more benchmarks from BenchmarkMutex could be easily added.

Suites Using This Test

Common Kernel Benchmarks

Single-Threaded


Performance Metrics

Analyze Test Configuration:

BenchmarkMutex

Benchmark: Mutex Lock Unlock spinlock_amd

OpenBenchmarking.org metrics for this test profile configuration based on 223 public results since 1 January 2020 with the latest data as of 3 March 2024.

Below is an overview of the generalized performance for components where there is sufficient statistically significant data based upon user-uploaded results. It is important to keep in mind particularly in the Linux/open-source space there can be vastly different OS configurations, with this overview intended to offer just general guidance as to the performance expectations.

Component
Percentile Rank
# Compatible Public Results
ns (Average)
Mid-Tier
75th
> 36
69th
9
38 +/- 2
Median
50th
44
26th
4
56 +/- 1
OpenBenchmarking.orgDistribution Of Public Results - Benchmark: Mutex Lock Unlock spinlock_amd223 Results Range From 19 To 191 ns1932455871849711012313614916217518820120406080100

Based on OpenBenchmarking.org data, the selected test / test configuration (BenchmarkMutex - Benchmark: Mutex Lock Unlock spinlock_amd) has an average run-time of 3 minutes. By default this test profile is set to run at least 3 times but may increase if the standard deviation exceeds pre-defined defaults or other calculations deem additional runs necessary for greater statistical accuracy of the result.

OpenBenchmarking.orgMinutesTime Required To Complete BenchmarkBenchmark: Mutex Lock Unlock spinlock_amdRun-Time246810Min: 1 / Avg: 2.58 / Max: 6

Based on public OpenBenchmarking.org results, the selected test / test configuration has an average standard deviation of 0.1%.

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsBenchmark: Mutex Lock Unlock spinlock_amdDeviation246810Min: 0 / Avg: 0.13 / Max: 1

Notable Instruction Set Usage

Notable instruction set extensions supported by this test, based on an automatic analysis by the Phoronix Test Suite / OpenBenchmarking.org analytics engine.

Instruction Set
Support
Instructions Detected
SSE2 (SSE2)
Used by default on supported hardware.
 
CVTSI2SD ADDSD
Last automated analysis: 18 January 2022

This test profile binary relies on the shared libraries libbenchmark.so.1, libc.so.6, libm.so.6.

Tested CPU Architectures

This benchmark has been successfully tested on the below mentioned architectures. The CPU architectures listed is where successful OpenBenchmarking.org result uploads occurred, namely for helping to determine if a given test is compatible with various alternative CPU architectures.

CPU Architecture
Kernel Identifier
Verified On
Intel / AMD x86 64-bit
x86_64
(Many Processors)