getsentry / arroyo

A library to build streaming applications that consume from and produce to Kafka.
https://getsentry.github.io/arroyo/
Apache License 2.0
39 stars 6 forks source link

perf: inline now calling `coarsetime::Instant` #336

Closed anonrig closed 5 months ago

anonrig commented 5 months ago

This particular change reduces the overall execution time of snuba-queries/1/rate-limited-real.json from 9.3% to 5.8%, because it wasn't inlined.

I basically run the following command to create some traffic for local benchmarking:

❯ yes "$(cat ../sentry-kafka-schemas/examples/snuba-queries/1/rate-limited-real.json | jq -c .)" | head -10000 | kcat -P -b 127.0.0.1:9092 -t snuba-queries

Before

Screenshot 2024-01-24 at 4 20 07 PM

After

Screenshot 2024-01-24 at 4 20 20 PM