Tests
Suites
Latest Results
Search
Register
Login
Popular Tests
Timed Linux Kernel Compilation
SVT-AV1
7-Zip Compression
Stockfish
FFmpeg
x265
Newest Tests
Rustls
LiteRT
WarpX
Epoch
Valkey
Whisperfile
Recently Updated Tests
Mobile Neural Network
ACES DGEMM
NWChem
SuperTuxKart
ASTC Encoder
SVT-AV1
New & Recently Updated Tests
Recently Updated Suites
Database Test Suite
Machine Learning
Steam
New & Recently Updated Suites
Component Benchmarks
CPUs / Processors
GPUs / Graphics
OpenGL
Disks / Storage
Motherboards
File-Systems
Operating Systems
OpenBenchmarking.org
Corporate / Organization Info
Bug Reports / Feature Requests
Systemd Total Boot Time 1.0.6
pts/systemd-boot-total-1.0.6
- 28 March 2021 -
Use python3 explicitly rather than python.
install.sh
#!/bin/sh if which systemd-analyze >/dev/null 2>&1 ; then echo 0 > ~/install-exit-status else echo "ERROR: systemd-analyze must be available on the system for testing" echo 2 > ~/install-exit-status fi cat > systemd-analyze.py<< EOT #!/usr/bin/python3 import subprocess out, err = subprocess.Popen(["systemd-analyze"], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() alllines = out.decode("latin-1") lines = alllines.split("\n") total_time =0 kernel_time =0 userspace_time = 0 firmware_time = 0 loader_time = 0 def time_to_ms(time): if "ms" in time: return float(time.replace("ms","")) if "min" in time: return float(time.replace("min",""))*60000 if "s" in time: return float(time.replace("s",""))*1000 for line in lines: if "(kernel)" in line: count = 0 for item in (line.split(" ")): if "kernel" in item: time = (line.split(" ")[count-1]) kernel_time = time_to_ms(time) break count+=1 if "(userspace)" in line: count = 0 for item in (line.split(" ")): if "userspace" in item: time = (line.split(" ")[count-1]) userspace_time = time_to_ms(time) break count+=1 if "(loader)" in line: count = 0 for item in (line.split(" ")): if "loader" in item: time = (line.split(" ")[count-1]) loader_time = time_to_ms(time) break count+=1 if "(firmware)" in line: count = 0 for item in (line.split(" ")): if "firmware" in item: time = (line.split(" ")[count-1]) firmware_time = time_to_ms(time) break count+=1 total_time = 0 total_time = float(kernel_time) + float(userspace_time) print("kernel_time : " + str(kernel_time)) print("userspace_time: " + str(userspace_time)) print("loader_time: " + str(loader_time)) print("firmware_time: " + str(firmware_time)) print("total_time: " + str(total_time)) EOT cat > systemd-boot-total << EOT #!/bin/sh python3 systemd-analyze.py | grep \$@ | cut -d':' -f2 > \$LOG_FILE 2>&1 EOT chmod +x systemd-boot-total
results-definition.xml
<?xml version="1.0"?> <!--Phoronix Test Suite v10.4.0m1--> <PhoronixTestSuite> <ResultsParser> <OutputTemplate>#_RESULT_#</OutputTemplate> </ResultsParser> </PhoronixTestSuite>
support-check.sh
#!/bin/sh which systemd-analyze if [ $? -gt 0 ]; then echo "Systemd is required for this test." > $TEST_CUSTOM_ERROR fi
test-definition.xml
<?xml version="1.0"?> <!--Phoronix Test Suite v10.4.0m1--> <PhoronixTestSuite> <TestInformation> <Title>Systemd Total Boot Time</Title> <Description>This test uses systemd-analyze to report the entire boot time.</Description> <ResultScale>ms</ResultScale> <Proportion>LIB</Proportion> <TimesToRun>1</TimesToRun> </TestInformation> <TestProfile> <Version>1.0.6</Version> <SupportedPlatforms>Linux</SupportedPlatforms> <SoftwareType>Utility</SoftwareType> <TestType>System</TestType> <License>Free</License> <Status>Verified</Status> <ExternalDependencies>python</ExternalDependencies> <Maintainer>Jim Kukunas</Maintainer> </TestProfile> <TestSettings> <Option> <DisplayName>Test</DisplayName> <Identifier>run-test</Identifier> <Menu> <Entry> <Name>Total</Name> <Value>total</Value> </Entry> <Entry> <Name>Userspace</Name> <Value>userspace</Value> </Entry> <Entry> <Name>Kernel</Name> <Value>kernel</Value> </Entry> <Entry> <Name>Loader</Name> <Value>loader</Value> </Entry> <Entry> <Name>Firmware</Name> <Value>firmware</Value> </Entry> </Menu> </Option> </TestSettings> </PhoronixTestSuite>