1
0
Fork 0
mirror of synced 2024-11-09 10:08:57 -05:00

Updated Speed (markdown)

Eric Nielsen 2021-08-08 19:15:06 -05:00
parent 2295e283c7
commit 26cadc2258

@ -2,43 +2,8 @@
Speed is extremely important and is something Zim takes pride in. Many users of Zsh frameworks complain of the slowness in gaining an interactive session. Below is a load-time comparison of many popular frameworks.
The tests were done with almost the exact same modules/plugins on various machines. Each load-time test was run 1,000 times to get the best possible results. The tests were run with `for i in {1..1000}; do time -ic 'exit'; done`. The script that generated these results can be found here: https://github.com/Eriner/zsh-framework-benchmark
The tests were done with almost the exact same modules/plugins on various machines. Each load-time test was run 100 times to get the best possible results. The tests were run with `for i in {1..100}; do time -ic 'exit'; done`. The script that generated these results can be found [here](https://github.com/zimfw/zsh-framework-benchmark).
The default configurations for each framework are changed only slightly from their default. This is to match feature-parity against the baseline, Zim.
## Comparison
#### Raspberry Pi 2 (overclocked to turbo preset)
```
The average startup time for oh-my-zsh is: 1.2623799999999996
The average startup time for zplug is: 1.3417381818181828
The average startup time for prezto is: 1.1222281818181825
The average startup time for zim is: 0.60497090909090934
```
#### Desktop (HDD, AMD 8-core @5GHz)
```
The average startup time for oh-my-zsh is: 0.10345636363636242
The average startup time for zplug is: 0.11895545454545389
The average startup time for prezto is: 0.093861818181817588
The average startup time for zim is: 0.055364545454545944
```
#### Laptop (SSD, Lenovo X1 Carbon Gen 3)
```
The average startup time for oh-my-zsh is: 0.085321605550050306
The average startup time for zplug is: 0.09151599999999695
The average startup time for prezto is: 0.071930000000000077
The average startup time for zim is: 0.053609999999999602
```
#### Server (HDD, Intel 8-core @2.4GHz)
```
The average startup time for oh-my-zsh is: 0.80886727272727321
The average startup time for zplug is: 0.92005727272727444
The average startup time for prezto is: 0.73909000000000258
The average startup time for zim is: 0.3699409090909111
```
![Zsh frameworks benchmark](https://zimfw.github.io/images/results.svg)