ctx_clock

Ctx_clock is a simple test program to measure the context switch time in clock cycles.

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

Project Site

gist.github.com

Test Created

18 February 2019

Test Maintainer

Michael Larabel 

Test Type

System

Average Install Time

2 Seconds

Average Run Time

26 Seconds

Test Dependencies

C/C++ Compiler Toolchain

Accolades

30k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page Views ***OpenBenchmarking.orgEventsctx_clock Popularity Statisticspts/ctx-clock2019.022019.042019.062019.082019.102019.122020.022020.042020.062020.082020.102020.122021.022021.042021.062021.082021.102021.122022.022022.042022.062022.082022.102022.122023.022023.042023.062023.082023.105K10K15K20K25K
* 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 November 2023.

Revision History

pts/ctx-clock-1.0.0   [View Source]   Mon, 18 Feb 2019 12:05:15 GMT
Initial commit of basic test that measures the context switch time.

Suites Using This Test

Common Kernel Benchmarks

CPU Massive

Server CPU Tests


Performance Metrics

Analyze Test Configuration:

ctx_clock

Context Switch Time

OpenBenchmarking.org metrics for this test profile configuration based on 4,619 public results since 18 February 2019 with the latest data as of 27 November 2023.

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
Clocks (Average)
100th
3
68 +/- 2
100th
20
81 +/- 2
100th
4
88 +/- 12
100th
4
89 +/- 9
99th
38
92 +/- 9
98th
3
104 +/- 15
98th
5
105 +/- 13
97th
7
112 +/- 10
96th
3
117 +/- 6
94th
8
122 +/- 4
92nd
44
128 +/- 17
90th
22
132 +/- 9
88th
4
134 +/- 1
88th
3
134 +/- 1
88th
10
135 +/- 3
85th
4
138 +/- 4
85th
3
138 +/- 11
84th
19
139 +/- 1
84th
3
140 +/- 6
82nd
6
143 +/- 1
82nd
9
144 +/- 12
81st
4
145 +/- 9
79th
7
147 +/- 4
76th
31
150 +/- 7
76th
24
150 +/- 4
Mid-Tier
75th
> 150
72nd
5
153 +/- 7
71st
8
155 +/- 2
70th
6
157 +/- 9
70th
23
158 +/- 17
70th
3
158 +/- 2
69th
5
160 +/- 3
69th
25
160 +/- 12
68th
8
162 +/- 18
67th
5
167 +/- 4
67th
26
167 +/- 20
63rd
12
173 +/- 10
63rd
13
174 +/- 5
63rd
3
174 +/- 1
62nd
7
175 +/- 18
61st
8
176 +/- 3
61st
5
178 +/- 4
61st
4
180 +/- 13
58th
11
182 +/- 11
57th
8
184 +/- 15
55th
14
186 +/- 17
54th
4
189 +/- 6
54th
3
189 +/- 12
54th
5
190 +/- 23
53rd
15
191 +/- 28
52nd
8
194 +/- 19
52nd
3
196 +/- 6
52nd
11
196 +/- 1
51st
8
198 +/- 15
Median
50th
200
50th
3
201 +/- 1
50th
3
202 +/- 28
50th
8
203 +/- 1
49th
5
206 +/- 5
49th
14
208 +/- 15
48th
3
216 +/- 8
46th
4
229 +/- 20
37th
4
358 +/- 1
29th
11
561 +/- 31
Low-Tier
25th
> 627
24th
4
645 +/- 58
24th
3
658 +/- 65
21st
4
734 +/- 60
20th
6
770 +/- 10
18th
4
864 +/- 83
17th
3
917 +/- 8
15th
4
968 +/- 4
11th
4
1079 +/- 32
10th
11
1093 +/- 30
9th
14
1130 +/- 135
8th
4
1136 +/- 38
8th
3
1154 +/- 21
7th
3
1167 +/- 83
7th
3
1168 +/- 51
6th
3
1223 +/- 73
4th
5
1372 +/- 59
2nd
19
1769 +/- 207
OpenBenchmarking.orgDistribution Of Public Results - Context Switch Time4618 Results Range From 64 To 28197 Clocks6462711901753231628793442400545685131569462576820738379468509907296351019810761113241188712450130131357614139147021526515828163911695417517180801864319206197692033220895214582202122584231472371024273248362539925962265252708827651282147001400210028003500

Based on OpenBenchmarking.org data, the selected test / test configuration (ctx_clock - Context Switch Time) has an average run-time of 2 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 BenchmarkContext Switch TimeRun-Time246810Min: 1 / Avg: 1 / Max: 2

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

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsContext Switch TimeDeviation246810Min: 0 / Avg: 0.19 / Max: 4

Does It Scale Well With Increasing Cores?

No, based on the automated analysis of the collected public benchmark data, this test / test settings does not generally scale well with increasing CPU core counts. Data based on publicly available results for this test / test settings, separated by vendor, result divided by the reference CPU clock speed, grouped by matching physical CPU core count, and normalized against the smallest core count tested from each vendor for each CPU having a sufficient number of test samples and statistically significant data.

IntelAMDOpenBenchmarking.orgRelative Core Scaling To Basectx_clock CPU Core ScalingContext Switch Time2468101618243248641280.72711.45422.18132.90843.6355

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
Last automated analysis: 17 January 2022

This test profile binary relies on the shared libraries libc.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)
Intel / AMD x86 32-bit
i686
(Many Processors)

Recent Test Results

OpenBenchmarking.org Results Compare

8 Systems - 22 Benchmark Results

Intel Core i9-13900K - Gigabyte Z790 UD - Intel Device 7a27

AlmaLinux 9.2 - 5.14.0-284.25.1.el9_2.x86_64 - GCC 11.3.1 20221121

8 Systems - 22 Benchmark Results

AMD Ryzen 9 7950X 16-Core - Giga Computing MC13-LE1-000 v01010101 - AMD Device 14d8

AlmaLinux 9.2 - 6.5.3-1.el9.elrepo.x86_64 - GCC 11.3.1 20221121

18 Systems - 35 Benchmark Results

4 x QEMU Virtual 2.5+ - QEMU Standard PC - Intel 440FX- 82441FX PMC

Ubuntu 18.04 - 5.3.0-51-generic - ext4

17 Systems - 35 Benchmark Results

4 x AMD EPYC (with IBPB) - QEMU Standard PC - Intel 440FX- 82441FX PMC

Ubuntu 18.04 - 4.15.0-88-generic - ext4

15 Systems - 35 Benchmark Results

4 x AMD EPYC - QEMU Standard PC - Intel 440FX- 82441FX PMC

Ubuntu 18.04 - 4.15.0-88-generic - ext4

1 System - 42 Benchmark Results

Intel Core i9-14900K - ASUS ROG STRIX Z790-E GAMING WIFI - Intel Device 7a27

Pop 22.04 - 6.5.4-76060504-generic - GNOME Shell 42.5

1 System - 42 Benchmark Results

Intel Core i9-14900K - ASUS ROG STRIX Z790-E GAMING WIFI - Intel Device 7a27

Pop 22.04 - 6.5.4-76060504-generic - GNOME Shell 42.5

1 System - 43 Benchmark Results

Intel Core i5-14600K - ASUS ROG STRIX Z790-E GAMING WIFI - Intel Device 7a27

Pop 22.04 - 6.5.4-76060504-generic - GNOME Shell 42.5

1 System - 43 Benchmark Results

Intel Core i5-14600K - ASUS ROG STRIX Z790-E GAMING WIFI - Intel Device 7a27

Pop 22.04 - 6.5.4-76060504-generic - GNOME Shell 42.5

16 Systems - 35 Benchmark Results

4 x AMD EPYC (with IBPB) - QEMU Standard PC - Intel 440FX- 82441FX PMC

Ubuntu 18.04 - 4.15.0-88-generic - ext4

15 Systems - 35 Benchmark Results

4 x Intel Xeon E312xx (Sandy Bridge IBRS update) - QEMU Standard PC - Intel 440FX- 82441FX PMC

Ubuntu 18.04 - 5.3.0-51-generic - ext4

12 Systems - 34 Benchmark Results

AMD EPYC 7313 16-Core - Intel 440BX - 32GB

Ubuntu 20.04.4 LTS - 5.10.142-1.ph4-esx - GCC 9.4.0

13 Systems - 34 Benchmark Results

32 x AMD EPYC 7351P 16-Core - Intel 440BX - 32GB

Ubuntu 20.04.4 LTS - 5.10.142-1.ph4-esx - GCC 9.4.0

1 System - 1 Benchmark Result

AMD Ryzen 9 5900X 12-Core - ASUS ROG STRIX B550-E GAMING - AMD Starship

Arch rolling - 6.6.1-arch1-1 - GNOME Shell 45.1

14 Systems - 34 Benchmark Results

AMD EPYC 7543P 32-Core - Intel 440BX - 32GB

Ubuntu 20.04.4 LTS - 5.10.142-1.ph4-esx - GCC 9.4.0

Most Popular Test Results

OpenBenchmarking.org Results Compare

2 Systems - 535 Benchmark Results

Intel Core i7-1065G7 - Dell 06CDVY - Intel Device 34ef

Ubuntu 20.04 - 5.9.0-050900rc7daily20201003-generic - GNOME Shell 3.36.4

11 Systems - 217 Benchmark Results

AMD Ryzen 9 3900X 12-Core - ASUS ROG CROSSHAIR VIII HERO - AMD Starship

Ubuntu 20.04 - 5.9.0-050900-generic - GNOME Shell 3.36.4

12 Systems - 593 Benchmark Results

AMD Ryzen 9 3900XT 12-Core - MSI MEG X570 GODLIKE - AMD Starship

Ubuntu 20.04 - 5.8.0-050800daily20200622-generic - GNOME Shell 3.36.2

4 Systems - 67 Benchmark Results

AMD Ryzen 5 3600X 6-Core - MSI X470 GAMING M7 AC - AMD Device 1480

Ubuntu 18.04 - 5.0.0-27-generic - GNOME Shell 3.28.4

22 Systems - 46 Benchmark Results

Intel Core i9-10900K - Gigabyte Z490 AORUS MASTER - Intel Comet Lake PCH

Ubuntu 20.10 - 5.10.4-051004-generic - GNOME Shell 3.38.1

12 Systems - 209 Benchmark Results

AMD Ryzen 7 2700X Eight-Core - ASUS ROG CROSSHAIR VII HERO - AMD 17h

Ubuntu 19.04 - 5.2.0-999-generic - GNOME Shell 3.32.1

3 Systems - 173 Benchmark Results

AMD Ryzen Threadripper 3970X 32-Core - 64GB - 931GB

Ubuntu 20.04 - 4.4.0-19041-Microsoft - GCC 9.3.0

6 Systems - 143 Benchmark Results

AMD Ryzen 9 5900X 12-Core - ASUS ROG CROSSHAIR VIII HERO - AMD Starship

Ubuntu 20.10 - 5.10.7-xanmod1 - GNOME Shell 3.38.1

2 Systems - 123 Benchmark Results

Intel Core i7-8700K - ASUS TUF Z370-PLUS GAMING - Intel 8th Gen Core

ManjaroLinux 18.0.4 - 4.19.49-1-MANJARO - Xfce 4.13

8 Systems - 439 Benchmark Results

Intel Core i5-10600K - Gigabyte Z490 AORUS MASTER - Intel Comet Lake PCH

Ubuntu 21.04 - 5.12.0-051200rc3daily20210315-generic - GNOME Shell 3.38.3

9 Systems - 7 Benchmark Results

Intel Core i3-3110M - LENOVO - Intel 3rd Gen Core DRAM

Gentoo - 5.12.8-gentoo-dist - MATE 1.24.0

12 Systems - 229 Benchmark Results

AMD Ryzen 5 2600 Six-Core - ASUS ROG CROSSHAIR VIII HERO - AMD 17h

Ubuntu 20.04 - 5.9.0-050900-generic - GNOME Shell 3.36.4

Find More Test Results