dbelyaeff / cogear-benchmark

Testing speed of Cogear.JS static pages generation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cogear.JS benchmark

Benchmarking pages generation time.

How to use

100 pages are pregenerated.

Simply run Cogear.JS in production to check built time.

> cogear prod

To increase pages num use ./faker.js as following:

> yarn fake [n]
# Where [n] is a num
> yarn fake 10000

Then you can go to the ./src/pages/index.pug and fix number of links at the index page.

Run Cogear.JS again.

Benchmarks

On my iMac 2013 (Core i5, 2.9Ghz).

Pages count Time (est.)
100 500ms
10000 6.5s

Performance

Of course it depends on webpack entries complexity, pages complexity and pages count.

This benchmark provide only basic pages and scripts for testing.

About

Testing speed of Cogear.JS static pages generation


Languages

Language:CSS 65.7%Language:JavaScript 19.8%Language:HTML 14.4%