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

Class CodeBenchmarkResult

tests/code_performance_benchmark.py:47–61  ·  view source on GitHub ↗

Results from benchmarking a single code file.

Source from the content-addressed store, hash-verified

45
46@dataclass
47class CodeBenchmarkResult:
48 """Results from benchmarking a single code file."""
49 file_path: str
50 file_type: str
51 file_size: int
52 token_count: int
53 tokendagger_times: List[float]
54 tiktoken_times: List[float]
55 tokendagger_avg: float
56 tiktoken_avg: float
57 tokendagger_median: float
58 tiktoken_median: float
59 speedup_ratio: float
60 tokens_per_second_td: float
61 tokens_per_second_tt: float
62
63
64class CodePerformanceBenchmark:

Callers 1

benchmark_single_fileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected