https://dev.to/kolkov/gos-regexp-is-slow-so-i-built-my-own-3000x-faster-3i6h
On Monday, 1 December 2025 at 17:03:58 UTC+3 Brian Candler wrote: > 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/5e767f05-f817-4ddb-ab76-a4b1fd047caan%40googlegroups.com.
