MNN/apps/iOS/MNNLLMChat/MNNLLMiOS/MainTab/Benchmark/Models/BenchmarkStatistics.swift

27 lines
671 B
Swift
Raw Normal View History

2025-07-11 10:58:37 +08:00
//
// BenchmarkStatistics.swift
// MNNLLMiOS
//
// Created by () on 2025/7/10.
//
import Foundation
2025-08-29 15:38:24 +08:00
/// Structure containing comprehensive statistical analysis of benchmark results.
/// Aggregates performance metrics, configuration details, and test summary information.
2025-07-11 10:58:37 +08:00
struct BenchmarkStatistics {
let configText: String
let prefillStats: SpeedStatistics?
let decodeStats: SpeedStatistics?
let totalTokensProcessed: Int
let totalTests: Int
static let empty = BenchmarkStatistics(
configText: "",
prefillStats: nil,
decodeStats: nil,
totalTokensProcessed: 0,
totalTests: 0
)
}