PHP 8.5.2
Preview: issue232.py Size: 506 B
//lib/python3/dist-packages/jsonschema/benchmarks/issue232.py

"""
A performance benchmark using the example from issue #232.

See https://github.com/python-jsonschema/jsonschema/pull/232.
"""
from pathlib import Path

from pyperf import Runner
from pyrsistent import m

from jsonschema.tests._suite import Version
import jsonschema

issue232 = Version(
    path=Path(__file__).parent / "issue232",
    remotes=m(),
    name="issue232",
)


if __name__ == "__main__":
    issue232.benchmark(
        runner=Runner(),
        Validator=jsonschema.Draft4Validator,
    )

Directory Contents

Dirs: 2 × Files: 3

Name Size Perms Modified Actions
issue232 DIR
- drwxr-xr-x 2026-01-08 12:55:53
Edit Download
- drwxr-xr-x 2026-01-08 12:56:12
Edit Download
506 B lrw-r--r-- 2023-08-14 21:45:04
Edit Download
320 B lrw-r--r-- 2023-08-14 21:45:04
Edit Download
70 B lrw-r--r-- 2023-08-14 21:45:04
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).