mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-10-27 07:52:03 +00:00
Relax BIP85 cache benchmark
This commit is contained in:
1 parent
5194adf145
commit
7b1ef2abe2
1 file changed
+2
-2
@@ -46,7 +46,7 @@ def test_bip85_cache_benchmark():
|
||||
for _ in range(3):
|
||||
pm.get_bip85_entropy(32, 1)
|
||||
cached_time = time.perf_counter() - start
|
||||
|
||||
assert cached_time < uncached_time
|
||||
# Ensure caching avoids redundant derive calls without relying on
|
||||
# potentially flaky timing comparisons across platforms.
|
||||
assert slow_uncached.calls == 3
|
||||
assert slow_cached.calls == 1
|
||||
Reference in new issue
Block a user