public inbox for [email protected]
help / color / mirror / Atom feedFrom: Kyotaro Horiguchi <[email protected]>
Subject: [PATCH 3/5] Adjust catcachebench for later patches
Date: Mon, 1 Jul 2019 15:08:11 +0900
Make the benchmark use SetCatCacheClock, which is being introduced by
the next patch. This temprarily breaks consistency until the next
patch is applied.
---
contrib/catcachebench/catcachebench.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/contrib/catcachebench/catcachebench.c b/contrib/catcachebench/catcachebench.c
index 0cebbbde4f..63a7400463 100644
--- a/contrib/catcachebench/catcachebench.c
+++ b/contrib/catcachebench/catcachebench.c
@@ -116,9 +116,7 @@ catcachebench2(void)
*/
if (--ct < 0)
{
- // We don't have it yet.
- //SetCatCacheClock(GetCurrentTimestamp());
- GetCurrentTimestamp();
+ SetCatCacheClock(GetCurrentTimestamp());
ct = clock_step;
}
for (a = 0 ; a < natts ; a++)
@@ -168,9 +166,7 @@ catcachebench3(void)
*/
if (--ct < 0)
{
- // We don't have it yet.
- //SetCatCacheClock(GetCurrentTimestamp());
- GetCurrentTimestamp();
+ SetCatCacheClock(GetCurrentTimestamp());
ct = clock_step;
}
for (a = 0 ; a < natts ; a++)
--
2.16.3
----Next_Part(Mon_Jul_01_16_02_59_2019_106)--
Content-Type: Text/X-Patch; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="v18-0004-Catcache-pruning-feature.patch"
view thread (11+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH 3/5] Adjust catcachebench for later patches
In-Reply-To: <no-message-id-1881944@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox