Slow on save and reload
simon-smith618 opened this issue · 0 comments
Hi,
Am new to eleventy and am using this starter, which is great.
The issue I am getting is when I save a file it takes a long time to render the updates
Copied 186 files / Wrote 30 files in 81.07 seconds (2702.3ms each, v0.12.1)
[start:eleventy] [Browsersync] Reloading Browsers...
These are just about 24 hard coded njk pages and 6 blog posts, it just hangs on reloading browser.
Debug shows this, not sure is this normal performance ?
➜ BEST-Static git:(main) DEBUG=Eleventy:Benchmark* npx @11ty/eleventy
Eleventy:Benchmark Benchmark (Configuration): "slug" Nunjucks Filter took 1ms (0.0%, called 8×, 0.1ms each) +0ms
Eleventy:Benchmark Benchmark (Configuration): "url" Nunjucks Filter took 4ms (0.0%, called 10×, 0.4ms each) +1ms
Eleventy:Benchmark Benchmark (Configuration): "displayPostedDate" Nunjucks Filter took 19ms (0.0%, called 18×, 1.0ms each) +0ms
Eleventy:Benchmark Benchmark (Configuration): "format" Nunjucks Filter took 1ms (0.0%, called 28×, 0.1ms each) +0ms
Eleventy:Benchmark Benchmark (Configuration): "formatISO" Nunjucks Filter took 1ms (0.0%, called 28×, 0.0ms each) +1ms
Eleventy:Benchmark Benchmark (Configuration): "image" Nunjucks Async Shortcode took 46ms (0.1%, called 320×, 0.1ms each) +0ms
Eleventy:Benchmark Benchmark (Configuration): "webpack" Nunjucks Async Shortcode took 2ms (0.0%, called 56×, 0.0ms each) +0ms
Eleventy:Benchmark Benchmark (Aggregate): Configuration addPlugin took 2ms (0.0%, called 3×, 0.6ms each) +0ms
Eleventy:Benchmark Benchmark (Aggregate): Searching the file system took 36ms (0.0%, called 3×, 12.1ms each) +0ms
Eleventy:Benchmark Benchmark (Aggregate): Data File took 2ms (0.0%, called 9×, 0.2ms each) +0ms
Eleventy:Benchmark Benchmark (Aggregate): Passthrough Copy File took 973ms (1.2%, called 186×, 5.2ms each) +0ms
Eleventy:Benchmark Benchmark (Aggregate): Template Read took 497ms (0.6%, called 58×, 8.6ms each) +0ms
Eleventy:Benchmark Benchmark (Aggregate): Template Compile took 1ms (0.0%, called 86×, 0.0ms each) +1ms
Eleventy:Benchmark Benchmark (Aggregate): Template Render took 74481ms (95.0%, called 50×, 1489.6ms each) +0ms
Eleventy:Benchmark Benchmark (Aggregate): Template Write took 1426ms (1.8%, called 30×, 47.5ms each) +0ms
Eleventy:Benchmark Benchmark (Data): ./src/case-studies/case-studies.11tydata.json
took 1ms (0.0%, called 3×, 0.2ms each) +0ms
Eleventy:Benchmark Benchmark (Data): ./src/blog/blog.11tydata.json
took 1ms (0.0%, called 5×, 0.1ms each) +0ms
Copied 186 files / Wrote 30 files in 76.99 seconds (2566.3ms each, v0.12.1)
Start time: (2021-04-21 21:45:06 UTC) [treshold=1%]
module time %
1 /Documents/BEST-Static/.eleventy.js (.eleventy.js) 1.3s ▇▇ 2%
2 ./Config (node_modules/@11ty/eleventy/src/Config.js) 1.4s ▇▇ 2%
3 ./TemplateEngineManager (node_module...venty/src/TemplateEngineManager.js) 1.4s ▇▇ 2%
4 ./EleventyExtensionMap (node_modules...eventy/src/EleventyExtensionMap.js) 1.4s ▇▇ 2%
5 ./TemplateRender (node_modules/@11ty/eleventy/src/TemplateRender.js) 1.4s ▇▇ 2%
6 ./TemplateData (node_modules/@11ty/eleventy/src/TemplateData.js) 1.6s ▇▇ 2%
7 ./src/Eleventy (node_modules/@11ty/eleventy/src/Eleventy.js) 1.7s ▇▇ 2%
Total require(): 3041
Total time: 1m 18.8s