Results from benchmarking a single code file.
| 45 | |
| 46 | @dataclass |
| 47 | class 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 | |
| 64 | class CodePerformanceBenchmark: |
no outgoing calls
no test coverage detected