benchmarkEvaluatorThroughput
Benchmark legacy vs forge evaluator throughput on random seven-card spots.
benchmarkEvaluatorThroughput(iterations?: number): { legacyEvalsPerSecond: number; fastEvalsPerSecond: number; implementation: string }
Import
const poker = require('poker-calculations');
When to use
Use when tuning server hardware or choosing between evaluateHandStrength and evaluateHandStrengthFast in production. Optional iterations defaults in native code when omitted; must be >= 1 when provided.
How to use
const poker = require('poker-calculations');
const bench = poker.benchmarkEvaluatorThroughput(50_000);
console.log(bench);
// { legacyEvalsPerSecond, fastEvalsPerSecond, implementation }