Extra benchmark

main
Bob Mottram 2020-08-29 09:42:03 +01:00
parent 748193b359
commit 899f006825
1 changed files with 6 additions and 0 deletions

View File

@ -4331,12 +4331,18 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int,
timeDiff = int((time.time() - postStartTime) * 1000) timeDiff = int((time.time() - postStartTime) * 1000)
if timeDiff > 100: if timeDiff > 100:
print('TIMING INDIV ' + boxName + ' 13.3 = ' + str(timeDiff)) print('TIMING INDIV ' + boxName + ' 13.3 = ' + str(timeDiff))
if ':' in announceDisplayName: if ':' in announceDisplayName:
announceDisplayName = \ announceDisplayName = \
addEmojiToDisplayName(baseDir, httpPrefix, addEmojiToDisplayName(baseDir, httpPrefix,
nickname, domain, nickname, domain,
announceDisplayName, announceDisplayName,
False) False)
# benchmark 13.3.1
timeDiff = int((time.time() - postStartTime) * 1000)
if timeDiff > 100:
print('TIMING INDIV ' + boxName + ' 13.3.1 = ' + str(timeDiff))
titleStr += \ titleStr += \
' <img loading="lazy" title="' + \ ' <img loading="lazy" title="' + \
translate['announces'] + '" alt="' + \ translate['announces'] + '" alt="' + \