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

29 lines
735 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
2025-09-03 16:44:51 +08:00
let totalTimeSeconds: Double
2025-07-11 10:58:37 +08:00
static let empty = BenchmarkStatistics(
configText: "",
prefillStats: nil,
decodeStats: nil,
totalTokensProcessed: 0,
2025-09-03 16:44:51 +08:00
totalTests: 0,
totalTimeSeconds: 0.0
2025-07-11 10:58:37 +08:00
)
}