1
0

gix bug in benchmark test.

This commit is contained in:
Nathan TeBlunthuis 2025-08-07 17:00:15 -07:00
parent a1efecd0e5
commit 30ec25cb91
2 changed files with 7 additions and 9 deletions

@ -1 +1 @@
Subproject commit 67363910e579b85dcde855554c077d8adaeff59f Subproject commit 7b40de3fe9c1011d7b47ca1fd3a24214e54cf6cd

View File

@ -27,14 +27,12 @@ def stream_text_by_article_streaming(file_path: str) -> Generator[Tuple[Any, Lis
print(f"An error occurred: {e}") print(f"An error occurred: {e}")
last_text = ""
last_article_id = None
with open('/dev/null', 'w') as of: with open('/dev/null', 'w') as of:
for article_id, text in stream_text_by_article_streaming(sys.argv[1]): for _, texts in stream_text_by_article_streaming(sys.argv[1]):
if article_id != last_article_id: last_text = ""
last_article_id = article_id for text in texts:
last_text = "" result = differ.inline_json_diff(last_text, text)
result = differ.inline_json_diff(last_text, text) print(result, file=of)
print(result, file=of) last_text = text