Class BenchmarkCharsetDetectors

java.lang.Object
org.apache.tika.ml.chardetect.tools.BenchmarkCharsetDetectors

public class BenchmarkCharsetDetectors extends Object
Micro-benchmark comparing charset detector throughput.

Not a JMH benchmark — intended for quick apples-to-apples comparison on a warm JVM. Runs each detector over a fixed corpus of byte samples, reports throughput in MB/s and mean latency in µs per call.

Usage:

   java BenchmarkCharsetDetectors --data /path/to/test-dir [--warmup 3] [--rounds 5]
 
  • Constructor Details

    • BenchmarkCharsetDetectors

      public BenchmarkCharsetDetectors()
  • Method Details