-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
ftlog use a crossbeam channel to offload IO/pipe to dedicated log thread. However, when benchmarking ftlog performance, I found that crossbeam channel takes up most of the time, especially in x86/x86_64 environment.
When try_send is commented out, the latency of single log call can steadily reduce to ~100ns. For normal benchmark, the latency of log call raises to ~500ns. This result does not match the latency in crossbeam benchmark(See kanal benchmark).
Further more, the impact of try_send is much more significant in Linux server than on MacBook Pro. This might cause by CPU architecture since crossbeam uses atomic operations in try_send.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels