5 ms·
Looks very cool––what kind of performance hit is introduced by logging every event?
by Jasber 14y ago
Looks very cool––what kind of performance hit is introduced by logging every event?
- matm 14y agoIt's essentially imperceptible. We measured it, and our client-side script introduces a 0.1% CPU overhead.
- deleted 14y ago[deleted]
- raylu 14y agoI don't think anyone is concerned about the CPU overhead. (Also, let's not talk about measuring things without defining exactly what was measured. On a blank page I'm sure your JS runs great.) How does it affect network performance? If I click a link and it takes me to another page, how do you track that?
- matm 14y agoGood point. In terms of network performance, we try to batch events and minimize server requests. For link tracking, our method is similar to how other analytics products track link clicks - we delay the page navigation the min of: 1) 250ms, 2) the time it takes for our server to respond to a click event.
- uptown 14y ago>we delay the page navigation the max of: 1) 250ms, 2) the time it takes for our server to respond to a click event. So if your server takes 10 seconds to respond to a click event, the user waits?