The Performance Gap Today (2025)
=================================

Benchmarking against Rust's regex crate on patterns like 
.*error.*connection.*:

  - Go stdlib: 12.6ms (250KB input)
  - Rust regex: ~20µs (same input)
  - Gap: ~600x slower


Can you show the actual code for these benchmarks? Is it possible that the 
Go example is including the time compiling the NFA? If that's the issue, 
then it can be precompiled and then used when required.
 
As for rust, it's impressive just to be able to read 250KB from RAM in 20µs 
(that's about 12GB/sec)

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/6e1ab5da-86a1-42a6-9a56-68f21fef76cen%40googlegroups.com.

Reply via email to