Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
ddribin
10 months agoNew Contributor
"op read" is pretty slow, ~700ms per invocation
Hi all,
I've noticed that op read is pretty slow, taking on the order of 700ms per invocation. Here's a benchmark using the hyerfine tool:
% hyperfine --warmup 3 "op read op://private/o...
ddribin
9 months agoNew Contributor
One other odd thing is that running this on an Intel CPU is a fair bit faster. On my 2017 iMac Pro, also running Sonoma 14.4.1, I get a benchmark of ~465ms:
% hyperfine --warmup 3 "op read op://private/op-test/password"
Benchmark 1: op read op://private/op-test/password
Time (mean ± σ): 463.9 ms ± 13.0 ms [User: 126.3 ms, System: 52.9 ms]
Range (min … max): 441.7 ms … 485.8 ms 10 runs
This is a good 235ms faster than the 700ms on my 2023 MacBook Pro with an M3 Max, which is very surprising. I thought maybe it was running through emulation, but it's a native ARM binary:
% file =op
/opt/homebrew/bin/op: Mach-O 64-bit executable arm64