From 213478ed4217f62b24f263febb22ccfba77f44fe Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 29 Aug 2020 09:53:01 +0100 Subject: [PATCH] Extra benchmark --- webinterface.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/webinterface.py b/webinterface.py index 52db6f057..0c5e41201 100644 --- a/webinterface.py +++ b/webinterface.py @@ -4464,11 +4464,26 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, '' + replyDisplayName + '\n' + # benchmark 13.7 + timeDiff = int((time.time() - + postStartTime) * 1000) + if timeDiff > 100: + print('TIMING INDIV ' + boxName + + ' 13.7 = ' + str(timeDiff)) + # show avatar of person replied to replyAvatarUrl = \ getPersonAvatarUrl(baseDir, replyActor, personCache) + + # benchmark 13.8 + timeDiff = int((time.time() - + postStartTime) * 1000) + if timeDiff > 100: + print('TIMING INDIV ' + boxName + + ' 13.8 = ' + str(timeDiff)) + if replyAvatarUrl: replyAvatarImageInPost = \ '