Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit f8b07b6

Browse files
committed
update pyo3
1 parent bc84343 commit f8b07b6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ name = "tokenizations"
1414
crate-type = ["cdylib"]
1515

1616
[dependencies.pyo3]
17-
version = "^0.13.0"
17+
version = "^0.14.0"
1818
features = ["extension-module"]

python/tests/test_bench.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
"""Benchmark"""
22
import tokenizations
3+
import pytest
34

45

6+
@pytest.mark.benchmark(warmup=True, group="short", disable_gc=True)
57
def test_short(benchmark):
68
args = ["今日は", "\t", "いい", "天気だ", "。"], ["今日", "は", "いい", "天気", "た", "。"]
79
benchmark(tokenizations.get_alignments, *args)
810

911

12+
@pytest.mark.benchmark(warmup=True, group="long", disable_gc=True)
1013
def test_long(benchmark):
1114
a = list("abcde") * 1000
1215
b = list("abbde") * 1000

0 commit comments

Comments
 (0)