boxdot / gurk-rs

Signal Messenger client for terminal
GNU Affero General Public License v3.0
458 stars 33 forks source link

Add benchmark to measure on_message time #193

Closed boxdot closed 1 year ago

boxdot commented 1 year ago

As input for the benchmark we use a list of raw incoming messages (metadata + base64 encoded serialized protobuf). To collect those use the configuration

[developer]
dump_raw_messages = true

The benchmark measures how long it takes to process all collected messages.

Collecting messages and running the benchmark is behind a feature flag dev. Run the benchmark with

cargo bench --features dev