3 ms·
I'm getting 74ms of total latency loading this page; much less than hundreds. You are correct that there are latencies involved that don't involve executing co
by Rapzid 8y ago
I'm getting 74ms of total latency loading this page; much less than hundreds.
You are correct that there are latencies involved that don't involve executing code, however my experience with Ruby, Python, and PHP is that they contribute a significant portion of the total latency in the most basic CRUD LAM(P|R|Py) stacks. Once you start getting into much heavier applications such as CMS's or eCommerce app code execution can easily dominate request latency by more than an order of magnitude.
- toasterlovin 8y agoI'm almost certain that you're hitting a cache when you load this site (I'm getting a 40ms ping to news.ycombinator.com, which would leave about 30ms to render a page here, and these pages are complex enough that the DB query would be more than 30ms). Caching is a thing you can do with Rails, you know... Look, I spend a fair amount of time looking at the performance monitoring tools for the Rails apps I deal with. Ruby execution time just isn't that big of a deal most of the time. And when you have a monster of a page and it is an issue, you use caching, like you do with every other language/framework.