[router] add tokenizer benchmark (#9427)

This commit is contained in:
Simo Lin
2025-08-21 11:09:39 -07:00
committed by GitHub
parent dae9a80f43
commit 78ae175866
5 changed files with 1496 additions and 77 deletions

View File

@@ -1,3 +1,6 @@
// Mock worker for testing - these functions are used by integration tests
#![allow(dead_code)]
use axum::{
extract::{Json, State},
http::StatusCode,
@@ -25,7 +28,6 @@ pub struct MockWorkerConfig {
}
#[derive(Clone, Debug)]
#[allow(dead_code)]
pub enum WorkerType {
Regular,
Prefill,
@@ -33,7 +35,6 @@ pub enum WorkerType {
}
#[derive(Clone, Debug)]
#[allow(dead_code)]
pub enum HealthStatus {
Healthy,
Unhealthy,