aboutsummaryrefslogtreecommitdiffstats
path: root/cps-path-parser
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2022-12-22 16:01:28 +0000
committerGerrit Code Review <gerrit@onap.org>2022-12-22 16:01:28 +0000
commit30d76ed37b777e642854d5ab4e94a6fc5f6af84a (patch)
treeb991e3410b99500182917ab1aa88bcd91feff4cc /cps-path-parser
parent8119a0634b900e15a0d99eb3b1993bb59546127c (diff)
parentded9f06f42bbe751bdec3d763ae5216d76df82c4 (diff)
Merge "Temp Table Creation improvements"
Diffstat (limited to 'cps-path-parser')
-rw-r--r--cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy8
1 files changed, 4 insertions, 4 deletions
diff --git a/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy b/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy
index f6a768a0a..36e89127c 100644
--- a/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy
+++ b/cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy
@@ -90,16 +90,16 @@ class CpsPathUtilSpec extends Specification {
def 'CPS Path Processing Performance Test.'() {
when: '200,000 paths are processed'
- def setupStopWatch = new StopWatch()
- setupStopWatch.start()
+ def stopWatch = new StopWatch()
+ stopWatch.start()
(1..100000).each {
CpsPathUtil.getNormalizedXpath('/long/path/to/see/if/it/adds/paring/time/significantly/parent/child[@common-leaf-name="123"]')
CpsPathUtil.getNormalizedXpath('//child[@other-leaf=1]/leaf-name[text()="search"]/ancestor::parent')
}
- setupStopWatch.stop()
+ stopWatch.stop()
then: 'it takes less then 10,000 milliseconds'
// In CI this actually takes about 3-5 sec which is approx. 50+ parser executions per millisecond!
- assert setupStopWatch.getTotalTimeMillis() < 10000
+ assert stopWatch.getTotalTimeMillis() < 10000
}
}