A good benchmark for the critical Article page is perhaps the Wikipedia bot account which stresses the atricle tree the hardest.
We should look out for metrics such as:and test both on Heroku deployment and locally.
- First Contentful Paint (FCP)
- Time to First Byte (TTFB)
Local tests are always on optimized PostgresQL. Remote tests always on powerful home wifi, never 4G. Measuremnts are taken on browser Network tab in developer tools with cache enabled. Each URL is ran randomly a few times, which gives an idea of cache warmup effects. Logged-in is logged-in as
cirosantilli
.- 075872a0a5ca7faf171d45834bc2b47995a15634 web: speed up article page DB queries further by moving topicId into topicAt this commit we had highly optimized article page queries. The slowest query was getting the new upvotes of the logged in user at 20 - 30 ms.
- TTFB
- local
- logged off:
- /wikibot: 65 - 70
- /cirosantilli: 160 - 190
- /cirosantilli/mathematics: 100 - 120
- /barack-obama: 40 - 60
- logged in:
- /wikibot: 90 - 100
- /cirosantilli: 200 - 300
- /barack-obama 65
- logged off:
- cirosantilli.com: 100 - 200
- ourbigbook.com
- logged off:
- /wikibot: 180 - 300
- /cirosantilli: 300 - 400
- /cirosantilli/mathematics: 240 - 400
- /barack-obama: 140 -180
- logged in:
- /wikibot: 330 - 450
- /cirosantilli: 450 - 600
- /cirosantilli/mathematics: 350 - 500
- /barack-obama: 250 - 400
- logged off:
- local
- TTFB
- 8ea5ffa52d291350e9a5ddef92e4171d50a51dcc TTFB logged off:This suggests a database scaling issue like a missing index.
- local
- /wikibot: 1200
- /cirosantilli: 500
- /barack-obama: 400
- cirosantilli.com: 100 - 200
- ourbigbook.com
- /wikibot: 3500 - 4500
- /cirosantilli: 1100 - 1500
- /barack-obama: 500 - 700
- local