Skip to content

Instantly share code, notes, and snippets.

@ochaton
Created August 20, 2023 20:06
Show Gist options
  • Save ochaton/8e3739ed220d306da08bff72e7b2e490 to your computer and use it in GitHub Desktop.
Save ochaton/8e3739ed220d306da08bff72e7b2e490 to your computer and use it in GitHub Desktop.
Tarantool checksums benchmarks
tarantool> require'tarantool'
---
- build: &0
target: Darwin-arm64-Release
options: cmake . -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/tarantool/2.11.0_1
-DENABLE_BACKTRACE=TRUE
linking: dynamic
mod_format: dylib
flags: ' -fexceptions -funwind-tables -fasynchronous-unwind-tables -fno-common
-fopenmp -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong
-fPIC -fmacro-prefix-map=/tmp/tarantool-20230615-7295-5x7z7g/tarantool-2.11.0=.
-std=c11 -Wall -Wextra -Wno-gnu-alignof-expression -Wno-cast-function-type'
compiler: /usr/bin/clang /usr/bin/clang++
package: Tarantool
debug: &1
getsources: 'function: 0x01052d1850'
uptime: 'function: 0x0104bf8708'
version: 2.11.0-0-g247a9a4
pid: 'function: 0x0104bf0118'
...
tarantool> jit.arch
---
- arm64
...
tarantool> bench(ds, digest.crc32)
---
- took:0.185s n:1.00M n/ops:0.185µs throughput:513.541MBps
...
tarantool> bench(ds, digest.xxhash32)
---
- took:0.059s n:1.00M n/ops:0.059µs throughput:1620.568MBps
...
tarantool> bench(ds, digest.xxhash64)
---
- took:0.074s n:1.00M n/ops:0.074µs throughput:1276.916MBps
...
tarantool> bench(ds, digest.md5)
---
- took:4.682s n:1.00M n/ops:4.682µs throughput:20.282MBps
...
tarantool> bench(ds, digest.md4)
---
- took:6.117s n:1.00M n/ops:6.117µs throughput:15.523MBps
...
tarantool> bench(ds, digest.sha1)
---
- took:4.934s n:1.00M n/ops:4.934µs throughput:19.245MBps
...
tarantool> bench(ds, digest.sha256)
---
- took:8.249s n:1.00M n/ops:8.249µs throughput:11.512MBps
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment