Average generation Time is really short


(Tom Wilhelm) #1

Hi all

The average generation times shows just numbers under 0.4 s mostly also under 0.1 s
When I load a site it mostly takes multiple seconds to load. Tested it also on other good computers and they always had like 2 seconds to load.

The generation time is obivously wrong. What can I do that the generation time will show correct.


(Lukas Winkler) #2

Hi,

Matomo just calls the browser performance API and stores the returned value.

So you can check the value yourself by entering the following in the JavaScript console.

window.performance.timing.responseEnd-window.performance.timing.requestStart

I think responseEnd is only after the main HTML file has loaded, but what you are thinking of is how long the whole page (including CSS, JS, Images) to load.


(Tom Wilhelm) #3

Thanks - is it possible to change the generation time through this time?
window.performance.timing.responseEnd-window.performance.timing.requestStart


(Lukas Winkler) #4

I am not sure what you mean.

This is the line in piwik.js that stores the data:

And here you can learn more about the performance API:

I think window.performance.timing.domComplete is a bit more of what you imagine (the time when a page has finished loading everything.