Botan

Botan is a BSD-licensed cross-platform open-source C++ crypto library "cryptography toolkit" that supports most publicly known cryptographic algorithms. The project's stated goal is to be "the best option for cryptography in C++ by offering the tools necessary to implement a range of practical systems, such as TLS protocol, X.509 certificates, modern AEAD ciphers, PKCS#11 and TPM hardware support, password hashing, and post quantum crypto schemes."

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

Project Site

botan.randombit.net

Test Created

1 November 2012

Last Updated

27 March 2021

Test Maintainer

Michael Larabel 

Test Type

Processor

Average Install Time

4 Minutes, 40 Seconds

Average Run Time

7 Minutes, 4 Seconds

Test Dependencies

C/C++ Compiler Toolchain

Accolades

200k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page Views ***OpenBenchmarking.orgEventsBotan Popularity Statisticspts/botan2012.112013.032013.072013.112014.032014.072014.112015.032015.072015.112016.032016.072016.112017.032017.072017.112018.032018.072018.112019.032019.072019.112020.032020.072020.112021.032021.072021.112022.032022.072022.112023.032023.072023.112024.0360K120K180K240K300K
* 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 18 March 2024.
ChaCha20Poly130516.1%AES-25616.8%CAST-25616.7%KASUMI16.8%Blowfish16.7%Twofish16.9%Test Option PopularityOpenBenchmarking.org

Revision History

pts/botan-1.6.0   [View Source]   Sat, 27 Mar 2021 12:40:33 GMT
Update against Botan 2.17.3 upstream, add ChaCha20Poly1305 option.

pts/botan-1.5.0   [View Source]   Sat, 29 Feb 2020 07:51:13 GMT
Update against Botan upstream.

pts/botan-1.4.0   [View Source]   Tue, 18 Dec 2018 10:44:45 GMT
Update against Botan 2.8, explicitly use Python3

pts/botan-1.3.0   [View Source]   Thu, 17 May 2018 17:08:55 GMT
Update against Botan 2.6 upstream.

pts/botan-1.2.0   [View Source]   Wed, 07 Feb 2018 14:47:57 GMT
Update against upstream Botan 2.4.0 test and make necessary profile changes for accomodating the upstream alterations for benchmarking.

pts/botan-1.1.1   [View Source]   Thu, 25 Aug 2016 14:13:19 GMT
Update download links

pts/botan-1.1.0   [View Source]   Fri, 10 Jan 2014 14:38:52 GMT
Update against upstream Botan 1.11.6.

pts/botan-1.0.0   [View Source]   Thu, 01 Nov 2012 14:28:42 GMT
Initial commit of new botan test profile that is a cryptography algorithm benchmark of the Botan C++ crypto library.

Suites Using This Test

Cryptography

CPU Massive

Single-Threaded


Performance Metrics

Analyze Test Configuration:

Botan 2.17.3

Test: Twofish

OpenBenchmarking.org metrics for this test profile configuration based on 1,026 public results since 27 March 2021 with the latest data as of 18 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
MiB/s (Average)
96th
4
451 +/- 7
94th
3
436 +/- 1
90th
4
422 +/- 2
88th
4
408 +/- 1
87th
8
403 +/- 23
85th
5
395 +/- 27
82nd
3
390 +/- 1
82nd
4
390 +/- 1
82nd
4
389 +/- 5
81st
4
388 +/- 1
76th
16
371 +/- 13
Mid-Tier
75th
< 370
74th
4
368 +/- 2
71st
4
364 +/- 1
70th
4
360 +/- 21
69th
4
356 +/- 1
60th
6
339 +/- 2
60th
13
337 +/- 24
59th
6
336 +/- 2
59th
7
335 +/- 5
54th
6
324 +/- 1
53rd
5
320 +/- 19
53rd
3
320 +/- 5
52nd
10
314 +/- 14
52nd
4
314 +/- 2
51st
3
312 +/- 2
Median
50th
310
49th
3
307 +/- 2
45th
4
298 +/- 1
40th
4
291 +/- 1
Low-Tier
25th
< 248
19th
3
234 +/- 1
17th
4
222 +/- 2
OpenBenchmarking.orgDistribution Of Public Results - Test: Twofish1015 Results Range From 18 To 586 MiB/s18426690114138162186210234258282306330354378402426450474498522546570594306090120150

Based on OpenBenchmarking.org data, the selected test / test configuration (Botan 2.17.3 - Test: Twofish) 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 BenchmarkTest: TwofishRun-Time246810Min: 2 / Avg: 2.01 / Max: 3

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 RunsTest: TwofishDeviation246810Min: 0 / Avg: 0.06 / Max: 1

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.

AMDIntelOpenBenchmarking.orgRelative Core Scaling To BaseBotan CPU Core ScalingTest: Twofish46812162432640.80581.61162.41743.22324.029

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.
 
MOVDQU PUNPCKLQDQ MOVDQA CVTSI2SD DIVSD ADDSD COMISD CVTTSD2SI SUBSD MOVAPD MULSD SHUFPD MOVD PSHUFD PSLLDQ PSRLDQ PSHUFHW PSHUFLW PUNPCKHQDQ PADDQ PSUBQ MINSD PMULUDQ ANDPD UCOMISD ANDNPD CMPNLESD ORPD
SSSE3 (SSSE3)
Used by default on supported hardware.
 
PSHUFB PALIGNR
Used by default on supported hardware.
Found on Intel processors since Sandy Bridge (2011).
Found on AMD processors since Bulldozer (2011).

 
VZEROUPPER VZEROALL VINSERTF128 VEXTRACTF128 VBROADCASTSS VBROADCASTSD VPERM2F128
Used by default on supported hardware.
Found on Intel processors since Haswell (2013).
Found on AMD processors since Excavator (2016).

 
VPBROADCASTD VPERM2I128 VINSERTI128 VPERMQ VPBLENDD VPSRLVQ VPSLLVQ VEXTRACTI128 VPBROADCASTW VPBROADCASTB VPBROADCASTQ VPMASKMOVQ VPERMD VPSRAVD VPMASKMOVD VPGATHERQD VPSRLVD
Used by default on supported hardware.
Found on Intel processors since at least 2010.
Found on AMD processors since Bulldozer (2011).

 
AESENC AESENCLAST AESDEC AESDECLAST AESKEYGENASSIST AESIMC
Vector AES (VAES)
Requires passing a supported compiler/build flag (verified with targets: sandybridge, skylake, tigerlake, cascadelake, sapphirerapids, alderlake, znver2, znver3).
Found on Intel processors since Ice Lake (2019).
Found on AMD processors since Zen 3 (2020).

 
VAESENC VAESENCLAST VAESDEC VAESDECLAST
FMA (FMA)
Requires passing a supported compiler/build flag (verified with targets: skylake, tigerlake, cascadelake, sapphirerapids, alderlake, znver2, znver3).
Found on Intel processors since Haswell (2013).
Found on AMD processors since Bulldozer (2011).

 
VFMADD132SD VFMADD213SD VFMADD231SD
Advanced Vector Extensions 512 (AVX512)
Requires passing a supported compiler/build flag (verified with targets: cascadelake, sapphirerapids).
 
(ZMM REGISTER USE)
The test / benchmark does honor compiler flag changes.
Last automated analysis: 17 January 2022

This test profile binary relies on the shared libraries libbotan-2.so.17, 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)
IBM Z
s390x
(Many Processors)
ARMv7 32-bit
armv7l
ARMv7, ARMv7 Cortex-A7 4-Core, ARMv7 Cortex-A9 2-Core
ARMv8 64-bit
aarch64
ARMv8 4-Core, ARMv8 Cortex-A53 4-Core, ARMv8 Cortex-A55 4-Core, ARMv8 Cortex-A57 4-Core, ARMv8 Cortex-A72, ARMv8 Cortex-A72 4-Core, ARMv8 Cortex-A73 2-Core, ARMv8 Cortex-A76 4-Core, ARMv8 Cortex-A78E 6-Core, ARMv8 Neoverse-N1, ARMv8 Neoverse-N1 64-Core, ARMv8 Neoverse-N2, ARMv8 Neoverse-N2 16-Core, ARMv8 Neoverse-V1, ARMv8 Neoverse-V1 16-Core, ARMv8 Neoverse-V1 64-Core, ARMv8 rev 0 4-Core, Ampere Altra ARMv8 Neoverse-N1 160-Core, Ampere eMAG ARMv8 32-Core, Apple M1, Apple M2

Recent Test Results

OpenBenchmarking.org Results Compare

1 System - 12 Benchmark Results

Intel Core i5-10500 - Dell 0NDYHG - Intel Tiger Lake-H

Debian 12 - 6.1.0-13-amd64 - X Server 1.21.1.7

1 System - 85 Benchmark Results

AMD EPYC 7R32 - Amazon EC2 g5.4xlarge - Intel 440FX 82441FX PMC

Amazon Linux 2 - 5.10.210-201.852.amzn2.x86_64 - GCC 7.3.1 20180712

1 System - 12 Benchmark Results

2 x Intel Xeon E5-2620 v2 - ASUS Z9PE-D8 WS - Intel Xeon E7 v2

CentOS Stream 9 - 5.14.0-427.el9.x86_64 - X Server

1 System - 12 Benchmark Results

2 x Intel Xeon Gold 5218 - Dell 07978V - Intel Sky Lake-E DMI3 Registers

Ubuntu 20.04 - 5.15.0-97-generic - GNOME Shell 3.36.9

1 System - 12 Benchmark Results

Intel Core i5-10500 - Dell 0NDYHG - Intel Tiger Lake-H

Debian 12 - 6.1.0-13-amd64 - X Server 1.21.1.7

1 System - 85 Benchmark Results

AMD EPYC 7R13 - Amazon EC2 c6a.4xlarge - Intel 440FX 82441FX PMC

Amazon Linux 2 - 5.10.210-201.852.amzn2.x86_64 - GNOME Shell 3.28.3

1 System - 12 Benchmark Results

Intel Core i5-10500 - Dell 0NDYHG - Intel Tiger Lake-H

Debian 12 - 6.1.0-13-amd64 - X Server 1.21.1.7

1 System - 12 Benchmark Results

Intel Core i5-10500 - Dell 0NDYHG - Intel Tiger Lake-H

Debian 12 - 6.1.0-13-amd64 - X Server 1.21.1.7

1 System - 57 Benchmark Results

ARMv8 Cortex-A72 - Raspberry Pi 4 Model B Rev 1.1 - Broadcom BCM2711

Debian 12 - 6.6.21-v8+ - GCC 12.2.0

1 System - 57 Benchmark Results

ARMv8 Cortex-A76 - Raspberry Pi 5 Model B Rev 1.0 - 4096MB

Debian 12 - 6.6.21-v8-16k+ - GCC 12.2.0

1 System - 12 Benchmark Results

Intel Core i5-10500 - Dell 0NDYHG - Intel Tiger Lake-H

Debian 12 - 6.1.0-13-amd64 - X Server 1.21.1.7

1 System - 57 Benchmark Results

ARMv8 Cortex-A53 - Khadas VIM4 - 8GB

Debian 12 - 5.15.78 - GCC 12.2.0

1 System - 12 Benchmark Results

Intel Core i5-10500 - Dell 0NDYHG - Intel Tiger Lake-H

Debian 12 - 6.1.0-13-amd64 - X Server 1.21.1.7

1 System - 12 Benchmark Results

Intel Core i5-10500 - Dell 0NDYHG - Intel Tiger Lake-H

Debian 12 - 6.1.0-13-amd64 - X Server 1.21.1.7

1 System - 12 Benchmark Results

Intel Core i5-10500 - Dell 0NDYHG - Intel Tiger Lake-H

Debian 12 - 6.1.0-13-amd64 - X Server 1.21.1.7

Most Popular Test Results

OpenBenchmarking.org Results Compare

3 Systems - 12 Benchmark Results

AMD Ryzen 5 3400G - ASUS PRIME B450M-A - AMD Raven

Ubuntu 19.10 - 5.3.0-46-generic - GNOME Shell 3.34.1

5 Systems - 21 Benchmark Results

Intel Core i7-1065G7 - Dell 06CDVY - Intel Ice Lake-LP DRAM

Ubuntu 20.10 - 5.9.0-050900-generic - GNOME Shell 3.38.2

3 Systems - 47 Benchmark Results

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

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

3 Systems - 30 Benchmark Results

AMD Ryzen Threadripper 2950X 16-Core - MSI MEG X399 CREATION - AMD 17h

Debian 10 - 5.8.1-050801-generic - GNOME Shell 3.30.2

3 Systems - 78 Benchmark Results

AMD Ryzen 7 3700X 8-Core - Gigabyte A320M-S2H-CF - AMD Starship

Ubuntu 20.04 - 5.8.1-050801-generic - GNOME Shell 3.36.4

4 Systems - 25 Benchmark Results

AMD EPYC 7F72 24-Core - ASRockRack EPYCD8 - AMD Starship

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

3 Systems - 25 Benchmark Results

Intel Core i9-9900K - ASRock Z390M Pro4 - Intel Cannon Lake PCH

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

3 Systems - 162 Benchmark Results

Intel Core i9-9900KS - ASUS PRIME Z390-A - Intel Cannon Lake PCH

Ubuntu 20.04 - 5.9.0-050900rc8daily20201005-generic - GNOME Shell 3.36.2

3 Systems - 50 Benchmark Results

AMD Ryzen 9 3900X 12-Core - ASUS TUF GAMING X570-PLUS - AMD Starship

Ubuntu 20.04 - 5.11.0-rc1-phx - GNOME Shell 3.36.4

3 Systems - 104 Benchmark Results

Intel Core i7-2700K - BIOSTAR B75MU3B v5.0 - Intel 2nd Generation Core DRAM

Ubuntu 20.04 - 5.9.1-050901-generic - GNOME Shell 3.34.1

8 Systems - 188 Benchmark Results

2 x Intel Xeon Platinum 8380 - Intel M50CYP2SB2U - Intel Device 0998

Ubuntu 20.04 - 5.11.0-051100-generic - GNOME Shell 3.36.4

3 Systems - 117 Benchmark Results

AMD EPYC 7702 64-Core - ASRockRack EPYCD8 - AMD Starship

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

3 Systems - 164 Benchmark Results

Intel Xeon E5-2609 v4 - MSI X99A RAIDER - Intel Xeon E7 v4

Ubuntu 20.04 - 5.9.0-050900rc6daily20200926-generic - GNOME Shell 3.36.2

3 Systems - 39 Benchmark Results

Intel Xeon Silver 4216 - TYAN S7100AG2NR - Intel Sky Lake-E DMI3 Registers

Debian 10 - 4.19.0-9-amd64 - GNOME Shell 3.30.2

Find More Test Results