Extra benchmark

main
Bob Mottram 2020-08-28 23:10:03 +01:00
parent c724d8960d
commit 1ea0d81e00
1 changed files with 8 additions and 0 deletions

View File

@ -5222,6 +5222,14 @@ def htmlTimeline(defaultTimeline: str,
boxName + ' = ' + str(timeDiff))
if not currTlStr:
# benchmark cache post
timeDiff = \
int((time.time() -
timelinePostStartTime) * 1000)
if timeDiff > 100:
print('TIMELINE POST DISK TIMING START ' +
boxName + ' = ' + str(timeDiff))
# read the post from disk
currTlStr = \
individualPostAsHtml(recentPostsCache, maxRecentPosts,