Skip to content

Commit 43bcb22

Browse files
TST: simple asv for uint8 parsing
1 parent 567fd58 commit 43bcb22

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

asv_bench/benchmarks/io/csv.py

+9
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,15 @@ def time_read_uint64_na_values(self):
285285
)
286286

287287

288+
class ReadUint8Integers(StringIORewind):
289+
def setup(self):
290+
arr = np.arange(10000).astype("uint8")
291+
self.data1 = StringIO("\n".join(arr.astype(str).tolist()))
292+
293+
def time_read_uint8(self):
294+
read_csv(self.data(self.data1), header=None, names=["foo"], dtype="uint8")
295+
296+
288297
class ReadCSVThousands(BaseIO):
289298

290299
fname = "__test__.csv"

0 commit comments

Comments
 (0)