forked from indymedia/epicyon
Extra benchmark
parent
c724d8960d
commit
1ea0d81e00
|
@ -5222,6 +5222,14 @@ def htmlTimeline(defaultTimeline: str,
|
||||||
boxName + ' = ' + str(timeDiff))
|
boxName + ' = ' + str(timeDiff))
|
||||||
|
|
||||||
if not currTlStr:
|
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
|
# read the post from disk
|
||||||
currTlStr = \
|
currTlStr = \
|
||||||
individualPostAsHtml(recentPostsCache, maxRecentPosts,
|
individualPostAsHtml(recentPostsCache, maxRecentPosts,
|
||||||
|
|
Loading…
Reference in New Issue