Add benchmarks

This commit is contained in:
2025-12-12 19:44:11 +09:00
parent 0f7fc8f706
commit ec907bb4e0
14 changed files with 706 additions and 16 deletions

View File

@@ -27,6 +27,7 @@ test = [
"coverage-badge>=1.1.2",
"pytest-html>=4.1.1",
"sqlparse>=0.5.4",
"pytest-benchmark[histogram]>=5.2.3",
]
[tool.setuptools.packages.find]
@@ -40,3 +41,22 @@ line-length = 100
[tool.ruff]
line-length = 100
[tool.pytest.ini_options]
addopts = [
"--cov=dibbler.lib",
"--cov=dibbler.models",
"--cov=dibbler.queries",
"--cov-report=html",
"--cov-branch",
"--self-contained-html",
"--html=./test-report/index.html",
"--benchmark-skip",
"--benchmark-autosave",
"--benchmark-save=default",
"--benchmark-verbose",
"--benchmark-storage=benchmark",
"--benchmark-histogram=benchmark/histogram",
]