--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/31a41b4f-cbcb-40c7-9df8-f1deddd15a32n%40googlegroups.com.
All right, sorry about the noise I wasn’t aware of the existence of two parsers, and I found the slow but correct one first. I quickly edited my stupid benchmark, and it looks like the lex parser is indeed much faster. It’s a bit slower than the Victoria one, but probably not enough to justify a change. And lex parsers are neat.
BenchmarkPrometheusTextParserMinimal-8 411118 2733 ns/op
BenchmarkVictoriaMetricsTextParserMinimal-8 4048662 291.1 ns/op
BenchmarkPrometheusLexMinimal-8 2301423 526.0 ns/op
BenchmarkPrometheusTextParserBig-8 2158 536188 ns/op
BenchmarkVictoriaMetricsTextParserBig-8 122446 9699 ns/op
BenchmarkPrometheusLexBig-8 33807 29730 ns/op
Thanks for your answers.
--
You received this message because you are subscribed to a topic in the Google Groups "Prometheus Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/prometheus-developers/mWgJyg1VYdQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
prometheus-devel...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-developers/3384e7dc-d495-4930-be9d-d1e36ad87d00n%40googlegroups.com.