NativeBenchmark typedef

NativeBenchmark = ({List<NativeBenchmarkTurn> decode, double initSeconds, int maxNumTokens, List<NativeBenchmarkTurn> prefill, double timeToFirstTokenSeconds})

LiteRT-LM's benchmark record of a conversation (LiteRtLmBenchmarkInfo), turn by turn: the engine's init time, the first token's latency, every prefill and decode turn, and the context window the executor uses (0 before the first prefill).

Implementation

typedef NativeBenchmark = ({
  double initSeconds,
  double timeToFirstTokenSeconds,
  List<NativeBenchmarkTurn> prefill,
  List<NativeBenchmarkTurn> decode,
  int maxNumTokens,
});