From d440348b0907c58e04d102b271a6e66dc53331e2 Mon Sep 17 00:00:00 2001 From: "petr.surkov" Date: Fri, 9 Dec 2022 11:50:24 +0100 Subject: [PATCH] [full-line] CompletionModelBenchmark useCache -> resetCache (IJ-MR-99925) GitOrigin-RevId: 5c935dc08089f307fc63d6a62c92c4765376ba65 --- .../full/line/local/CompletionModelBenchmark.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/full-line/local/benchmark/test/org/jetbrains/completion/full/line/local/CompletionModelBenchmark.java b/plugins/full-line/local/benchmark/test/org/jetbrains/completion/full/line/local/CompletionModelBenchmark.java index 43666a3f8d46..889d3ca95fe5 100644 --- a/plugins/full-line/local/benchmark/test/org/jetbrains/completion/full/line/local/CompletionModelBenchmark.java +++ b/plugins/full-line/local/benchmark/test/org/jetbrains/completion/full/line/local/CompletionModelBenchmark.java @@ -43,8 +43,8 @@ public class CompletionModelBenchmark { @Param({"0", "5", "50", "1000"}) public int shiftContext; - @Param({"false", "true"}) - public boolean useCache; + @Param({"true", "false"}) + public boolean resetCache; private String filename; @@ -70,14 +70,14 @@ public class CompletionModelBenchmark { prefix = helper.randomPrefix(prefixLen); context = helper.continueContextRandomly(context, contextTextLen, shiftContext); config = helper.getConfig(maxLen, filename); - if (!useCache) { + if (resetCache) { helper.resetCache(); } } @TearDown(Level.Invocation) public void teardown() { - if (useCache) { + if (!resetCache) { if (shiftContext <= 10) { assert helper.getCacheHits() > 0; }