It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
ddribin
2 years 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 https://github.com/sharkdp/hyperfine tool:
% hyperfine --warmup...
maver1ck
5 months agoNew Contributor
Hi 1P_SimonH
Any chance to get any reasonable response from 1password team ?
There are multiple threads on this topic and I didn't see any suggestions from your team how to fix this problem.
- 1P_SimonH5 months ago
Community Manager
Hi maver1ck,
I shared with this with the right folks and they don't have any immediate suggestions beyond what AndyW1P shared about using UUIDs. This has sparked a lot of brainstorming for how we can improve this performance, though, so thank you for flagging it!- maver1ck5 months agoNew Contributor
Hi 1P_SimonH ,
I checked different techniques mentioned in this and other threads and generally speaking they're not doing big difference.
Changing from names to IDs has marginal effect as everything sit in cache.
The problem is that debug mode doesn't show proper timestamps (or maybe I don't know how to enable them) so it's difficult to say what operation is bottleneck.
But from output observation I would say problem lays in first two NM requests.time op read op://vault/OPENAI_API_KEY/password --debug 5:24PM | DEBUG | Session delegation enabled 5:24PM | DEBUG | NM request: NmRequestAccounts 5:24PM | DEBUG | NM response: Success 5:24PM | DEBUG | NM request: NmRequestAccounts 5:24PM | DEBUG | NM response: Success 5:24PM | DEBUG | InitDefaultCache: successfully initialized cache 5:24PM | DEBUG | EncryptedKeysets: Cache hit on keyset 5:24PM | DEBUG | AllVaults: cache hit on vault j2.....................sa 5:24PM | DEBUG | AllVaults: cache hit on vault bg........................ty 5:24PM | DEBUG | AllVaults: cache hit on vaultk7.................ny 5:24PM | DEBUG | VaultItems: cache hit on vault items of vault k7.................ny 5:24PM | DEBUG | VaultItems: cache hit on vault items of vault k7.................ny 5:24PM | DEBUG | Item: VaultItems cache hit for vault k7.................ny - validating staleness using item version 5:24PM | DEBUG | Item: cache hit on item xe...................c474 of vault k7.................ny op read op://vault/OPENAI_API_KEY/password --debug 0.05s user 0.03s system 6% cpu 1.274 total