1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-12-02 17:17:49 +01:00
gojekyll/docs/benchmarks.md

35 lines
1.4 KiB
Markdown
Raw Normal View History

2017-07-10 00:48:49 +02:00
# Benchmarks
`[go]jekyll build` on a late-2015 MacBook Pro, running current versions of everything as of 2017-07-09.
Disable the cache by setting the environment variable `GOJEKYLL_DISABLE_CACHE=1`.
Disable threading by setting `GOMAXPROCS=1`.
2017-07-24 18:30:09 +02:00
SASS conversion and Pygments (`{\% highlight \%}`) are cached.
2017-07-10 00:48:49 +02:00
## Jekyll Docs
This site contains only one SASS file.
2017-07-24 18:30:09 +02:00
It contains a few instances of `{\% highlight \%}`.
2017-07-10 01:20:26 +02:00
Each of these results in a call to Pygment. This dominates the un-cached times.
2017-07-10 00:48:49 +02:00
| Executable | Options | Time |
|------------|-----------------------------|---------------|
| jekyll | | 18.53s |
2017-08-08 23:22:44 +02:00
| gojekyll | single-threaded; cold cache | 3.14s ± 0.23s |
| gojekyll | single-threaded; warm cache | 2.19s ± 0.03s |
| gojekyll | multi-threaded; cold cache | 1.19s ± 0.03s |
| gojekyll | multi-threaded; warm cache | 0.63s ± 0.03s |
2017-07-10 00:48:49 +02:00
## Software Design web site
This site makes heavy use of SASS.
| Executable | Options | Time |
|------------|-----------------------------|---------------|
| jekyll | | 8.07s |
| gojekyll | single-threaded; cold cache | 1.46s ± 0.21s |
| gojekyll | single-threaded; warm cache | 0.60s ± 0.23s |
| gojekyll | multi-threaded; cold cache | 1.23s ± 0.10s |
| gojekyll | multi-threaded; warm cache | 0.35s ± 0.04s |