Results from a single benchmark run.
| 43 | |
| 44 | @dataclass |
| 45 | class 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 | |
| 65 | class PerformanceBenchmark: |
no outgoing calls
no test coverage detected