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, 44 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 13 April 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.13.0

Test: AES-256

OpenBenchmarking.org metrics for this test profile configuration based on 667 public results since 29 February 2020 with the latest data as of 21 March 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
MiB/s (Average)
100th
3
8042 +/- 284
100th
8
7959 +/- 355
100th
5
7863 +/- 46
96th
8
7443 +/- 71
96th
10
7388 +/- 64
93rd
17
7193 +/- 605
93rd
9
7153 +/- 67
91st
3
6178 +/- 28
82nd
3
5594 +/- 36
82nd
5
5590 +/- 37
77th
10
5203 +/- 41
Mid-Tier
75th
< 5165
74th
11
5023 +/- 463
74th
10
4951 +/- 84
74th
6
4943 +/- 10
71st
3
4808 +/- 5
70th
4
4800 +/- 18
68th
7
4595 +/- 17
67th
6
4571 +/- 44
66th
8
4557 +/- 28
61st
10
4487 +/- 25
61st
10
4486 +/- 15
61st
10
4482 +/- 27
54th
13
4423 +/- 21
54th
10
4419 +/- 18
54th
10
4418 +/- 13
54th
11
4414 +/- 24
54th
10
4411 +/- 16
Median
50th
4397
48th
10
4296 +/- 28
46th
10
4288 +/- 20
46th
8
4277 +/- 26
41st
4
4034 +/- 6
40th
5
3990 +/- 37
39th
3
3902 +/- 9
38th
3
3832 +/- 31
36th
4
3795 +/- 72
35th
3
3736 +/- 32
34th
7
3709 +/- 27
31st
3
3542 +/- 5
29th
3
3352 +/- 8
27th
4
3115 +/- 113
26th
4
3099 +/- 3
Low-Tier
25th
< 3060
25th
5
3041 +/- 43
24th
3
3004 +/- 4
19th
4
2224 +/- 33
15th
4
1358 +/- 11
12th
4
779 +/- 5
11th
3
740 +/- 3
10th
3
684 +/- 3
OpenBenchmarking.orgDistribution Of Public Results - Test: AES-256667 Results Range From 5 To 8837 MiB/s518235953671389010671244142115981775195221292306248326602837301431913368354537223899407642534430460747844961513853155492566958466023620063776554673169087085726274397616779379708147832485018678885520406080100

Based on OpenBenchmarking.org data, the selected test / test configuration (Botan 2.13.0 - Test: AES-256) 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: AES-256Run-Time3691215Min: 1 / Avg: 1.09 / Max: 8

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: AES-256Deviation246810Min: 0 / Avg: 0.12 / Max: 3

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 BaseBotan CPU Core ScalingTest: AES-25646816243248641280.67711.35422.03132.70843.3855

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)
Intel / AMD x86 32-bit
i386
(Many Processors)
ARMv7 32-bit
armv7l
ARMv7 Cortex-A53 4-Core, ARMv7 Cortex-A7 4-Core, ARMv7 Cortex-A7 8-Core, ARMv7 Cortex-A72 4-Core, ARMv7 rev 3 4-Core
ARMv8 64-bit
arm64
Apple M1, Apple M1 Max
ARMv8 64-bit
aarch64
ARMv8, ARMv8 Cortex-A53 4-Core, ARMv8 Cortex-A55 4-Core, ARMv8 Cortex-A57 2-Core, ARMv8 Cortex-A72 4-Core, ARMv8 rev 0 6-Core, Ampere Altra ARMv8 Neoverse-N1 160-Core, Ampere eMAG ARMv8 32-Core, Phytium FT2000PLUS