Buckets:

download
raw
863 Bytes
import json
from datetime import datetime
import pytest
pytestmark = pytest.mark.benchmark
def test_jwt_benchmark(benchmark):
from api.auth.jwt_handler import create_access_token
result = benchmark(create_access_token, {"sub": "test-user", "role": "admin"})
assert result is not None
def test_json_serialization_benchmark(benchmark):
data = {"findings": [{"id": i, "type": "test", "severity": "high", "description": "x" * 100} for i in range(100)]}
result = benchmark(json.dumps, data, default=str)
assert result is not None
def test_template_rendering_benchmark(benchmark):
from core.template_engine import TemplateEngine
engine = TemplateEngine()
engine.register_template("bench", "{{name}} {{type}} {{severity}}")
benchmark(engine.render_template, "bench", {"name": "test", "type": "xss", "severity": "high"})

Xet Storage Details

Size:
863 Bytes
·
Xet hash:
03612c0ad989a9e839987091cb948b7991340108cfad67c068c0bdb949ddb94b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.