Benchmark for Lume static site generator and comparison with other generators.
The directory ssg
contains all static site generators to test. Make sure you have all installed:
- Lume (Deno) See instructions
- Eleventy (Node) See instructions
- Jekyll (Ruby) See instructions
- Hugo (Go) See instructions
If you want to add or remove any generator, edit the config.js
.
To test if all generators work fine, run deno run --unstable -A cli.js --generate
to generate the content. Then you can go to the directory of every generator to test the build.
To run the benchmark: deno run --unstable -A cli.js
. You can add some options:
--pages
To generate different number of pages. By default is1000
.--runs
How many times are run every build in order to have more accurate and stable results. By default is10
.
deno run --unstable -A cli.js --pages 100
SITES WITH 100 PAGES:
(10 runs)
┌───────┬────────────┬─────────┬──────────────┐
│ (idx) │ name │ seconds │ duration │
├───────┼────────────┼─────────┼──────────────┤
│ 0 │ hugo │ 0.384 │ ▓▓░░░░░░░░ │
│ 1 │ lume │ 0.776 │ ▓▓▓▓░░░░░░ │
│ 2 │ jekyll │ 1.491 │ ▓▓▓▓▓▓▓▓░░ │
│ 3 │ eleventy │ 1.957 │ ▓▓▓▓▓▓▓▓▓▓ │
└───────┴────────────┴─────────┴──────────────┘
deno run --unstable -A cli.js --pages 1000
SITES WITH 1000 PAGES:
(10 runs)
┌───────┬────────────┬─────────┬──────────────┐
│ (idx) │ name │ seconds │ duration │
├───────┼────────────┼─────────┼──────────────┤
│ 0 │ hugo │ 0.998 │ ▓▓▓░░░░░░░ │
│ 1 │ lume │ 1.686 │ ▓▓▓▓▓▓░░░░ │
│ 2 │ jekyll │ 2.355 │ ▓▓▓▓▓▓▓▓░░ │
│ 3 │ eleventy │ 2.889 │ ▓▓▓▓▓▓▓▓▓▓ │
└───────┴────────────┴─────────┴──────────────┘
deno run --unstable -A cli.js --pages 10000
SITES WITH 10000 PAGES:
(10 runs)
┌───────┬────────────┬─────────┬──────────────┐
│ (idx) │ name │ seconds │ duration │
├───────┼────────────┼─────────┼──────────────┤
│ 0 │ hugo │ 7.636 │ ▓▓▓░░░░░░░ │
│ 1 │ jekyll │ 15.874 │ ▓▓▓▓▓▓▓░░░ │
│ 2 │ lume │ 18.208 │ ▓▓▓▓▓▓▓▓░░ │
│ 3 │ eleventy │ 23.482 │ ▓▓▓▓▓▓▓▓▓▓ │
└───────┴────────────┴─────────┴──────────────┘