OTS-PERF(1)

✨ ots-perf(1) β€” performance checker ✨

okay bestie, welcome to ots-perf, a lil command-line icon from the OpenType Sanitizer family (that's the User Commands squad btw) πŸŽ€


🌸 NAME 🌸

ots-perf β€” performance checker πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

ots-perf FONT_FILE

πŸ‘‘ DESCRIPTION πŸ‘‘

so like, ots-perf is a program that validates and transcodes a font file N times using OTS, and then it prints out the elapsed time. that's it, that's the whole vibe 🫢

it's literally doing this, no cap:

for (N times)
  ValidateAndTranscode(original_font);
Print(elapsed_time_in_us / N);

so you get the average time per round, in microseconds, bc math is cute like that πŸ’–


πŸ“ EXAMPLES πŸ“

okay so here's what it looks like in the wild, and honestly? ate ✨

$ ./ots-perf sample.ttf
903 [us] sample.ttf (139332 bytes, 154 [byte/us])
$ ./ots-perf sample-bold.otf
291 [us] sample-bold.otf (150652 bytes, 517 [byte/us])

see how it flexes the file size AND the bytes-per-microsecond? main character energy fr fr πŸ”₯


😭 REPORTING BUGS 😭

found a bug? not you being the detective πŸ’€ report it over here bestie:

https://github.com/khaledhosny/ots/issues


🌈 SEE ALSO 🌈

the whole friend group, periodt:


ngl, this page is from OpenType Sanitizer, dated May 2021 β€” ty for coming to my ted talk, ily, go time some fonts πŸ§šπŸ’œ