BenchmarkScoreEngine

internal class BenchmarkScoreEngine(val timeProvider: TimeProvider)(source)

Runs a bounded synthetic benchmark and derives conservative recommendations.

The benchmark intentionally avoids model inference and GPU execution, so it cannot crash due to missing model files or unstable AI runtimes.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(timeProvider: TimeProvider)

Types

Link copied to clipboard
private object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
private fun acceleratorScore(deviceInfo: BenchmarkDeviceInfo): Int
Link copied to clipboard
private fun deviceClassFactor(deviceInfo: BenchmarkDeviceInfo): Float
Link copied to clipboard
Link copied to clipboard
private fun measureMs(block: () -> Unit): Double
Link copied to clipboard
private fun memoryScore(): Int
Link copied to clipboard
private fun notes(deviceInfo: BenchmarkDeviceInfo, workload: WorkloadScore): List<String>
Link copied to clipboard
private fun ramScore(deviceInfo: BenchmarkDeviceInfo): Int
Link copied to clipboard