Overview of FlashInfer Perf Benchmarking Framework
mainThe flashinfer_benchmark.py framework is a unified tool for benchmarking FlashInfer kernels. It allows developers to:
- Benchmark performance for Attention, GEMM, MOE, Normalization, Quantization, Sampling, RoPE, Mamba, and GDN APIs.
- Compare performance across various backends including FlashAttention2/3, cuDNN, cuBLAS, CUTLASS, CuTe-DSL, TensorRT-LLM, and Triton.
- Compare performance across different configurations.
- Perform batch performance testing for multiple test cases.