Shell prompt generator in Rust
I want to see how long it takes for ZSH to run Rust app that generates shell prompt compared to writing same prompt generator function in shell
- Write test scenario
- Write Rust generator for test scenario
- Write ZSH generator for test scenario
- Complete time of execution will be measured. So test shall look like this
# 1. Check start time with microseconds precision
# 2. Run generator and store its result as ENV string
# 3. Print execution time with microseconds precision
print -P "$(cargo run --release -- --error "$?")"