Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Sep 6, 2024
1 parent 0de8a05 commit 03856ff
Showing 1 changed file with 38 additions and 5 deletions.
43 changes: 38 additions & 5 deletions tests/test_merkle_blob.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from chia_rs import MerkleBlob
from chia_rs.sized_bytes import bytes32
from chia_rs.sized_ints import uint64
Expand All @@ -15,18 +14,52 @@ def test_merkle_blob():


def test_just_insert_a_bunch() -> None:
HASH = bytes32([
12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43,
])
HASH = bytes32(
[
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
]
)

import pathlib

path = pathlib.Path("~/tmp/mbt/").expanduser()
path.joinpath("py").mkdir(parents=True, exist_ok=True)
path.joinpath("rs").mkdir(parents=True, exist_ok=True)

merkle_blob = MerkleBlob(blob=bytearray())
import time

total_time = 0.0
for i in range(100000):
start = time.monotonic()
Expand Down

0 comments on commit 03856ff

Please sign in to comment.