lib1305-speed(1)

πŸ“¦
version 0~20250415 Β· 3 versions
, in debian trixie, ubuntu questing

✨ lib1305-speed ✨

okay bestie, gather round, we're talking about lib1305-speed from the lib1305 manual β€” part of that good good section 1 energy πŸ’…


🌸 NAME 🌸

lib1305-speed β€” run some lib1305 speed tests πŸƒβ™€οΈπŸ’¨


πŸ¦‹ SYNOPSIS πŸ¦‹

lib1305-speed

no flags, no args, no drama. you just run it. periodt. πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

so lib1305-speed runs some tests of the speed of the lib1305 implementation of Poly1305. that's it. that's the whole vibe. we're benchmarking, we're flexing, we're watching numbers go brrr. πŸ”₯

⚠️ heads up bestie: the lib1305-speed output format is subject to change. don't you dare write a parser that depends on it, i'm literally begging you. πŸ™ˆ

here are some examples of output lines with the current format, straight from a lib1305-speed run on an Intel Skylake CPU core:

onetimeauth_poly1305 selected implementation amd64-mxaa-g24 compiler clang -Wall -fPIC -fwrapv -Qunused-arguments -O2 -mbmi -mbmi2 -mtune=skylake; Ubuntu clang version 14.0.0-1ubuntu1.1; Target: x86_64-pc-linux-gnu; Thread model: posix; InstalledDir: /usr/bin
onetimeauth_poly1305_verify selected 8090 6563 +453+92+44+41-4-27+8-32-12+3-5-15+37-28+26+19-18-48-15+28+3+13+66-42+41-25-10+2-9-36+18-64

okay so what are these lines even saying?? let me translate, because the way that these are formatted is genuinely a lot. 🫢

the automatically selected implementation for onetimeauth_poly1305_verify was the amd64-mxaa-g24 implementation, compiled with the clang options shown up there. it took an interquartile mean (IQM) of 6563 CPU cycles for 8090-byte inputs. slay. ✨

and those numbers 6563 +453+92...? those show the timings for a series of consecutive operations: the IQM was 6563 cycles, the first run took 453 cycles more than the IQM, the second run took 92 cycles more than the IQM, etc. it's giving receipt-by-receipt breakdown of every single run and honestly? iconic. πŸ’€


πŸŽ€ SEE ALSO πŸŽ€


and that's the whole page, bestie!! 🌈 this one lives in the lib1305-speed(1) manual, so if you ever forget where you found it, that's your receipt 🧾✨ mwah, go benchmark something, you absolute main character πŸ‘‘πŸ’–

πŸ“¦ where this page comes from