MCPcopy Create free account
hub / github.com/M4THYOU/TokenDagger / BenchmarkResult

Class BenchmarkResult

tests/performance_benchmark.py:45–62  ·  view source on GitHub ↗

Results from a single benchmark run.

Source from the content-addressed store, hash-verified

43
44@dataclass
45class BenchmarkResult:
46 """Results from a single benchmark run."""
47 test_name: str
48 text_length: int
49 token_count: int
50 tokendagger_times: List[float]
51 tiktoken_times: List[float]
52 tokendagger_avg: float
53 tiktoken_avg: float
54 tokendagger_median: float
55 tiktoken_median: float
56 tokendagger_min: float
57 tiktoken_min: float
58 tokendagger_max: float
59 tiktoken_max: float
60 speedup_ratio: float # tiktoken_avg / tokendagger_avg
61 tokens_per_second_td: float
62 tokens_per_second_tt: float
63
64
65class PerformanceBenchmark:

Callers 1

benchmark_single_textMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected