Skip to content

Commit 2e5257d

Browse files
authored
Introduce benchmark for json.loads (#6723)
1 parent 6cb763a commit 2e5257d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

benches/_data/pypi_org__simple__psutil.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

benches/benchmarks/json_loads.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import json
2+
3+
with open('benches/_data/pypi_org__simple__psutil.json') as f:
4+
data = f.read()
5+
6+
7+
loaded = json.loads(data)

0 commit comments

Comments
 (0)