@Override public void reset() { for (PerformanceLogger performanceLogger : performanceLoggers) { performanceLogger.reset(); } }
is((long) 21)); performanceLogger.reset(); loggedValues = performanceLogger.getLoggedValues(); assertThat(loggedValues.get(BatchEvaluationLoggingDecorator.BATCH_COUNTER), is((long) 0));
is((long) 2)); pl.reset(); loggedValues = pl.getLoggedValues(); assertThat(loggedValues.get(BinaryComparisonLoggingDecorator.BINARY_COMPARISON_GT),
assertThat(loggedValues.get(NetworkLoggingDecorator.NETWORK_TOTAL_BATCHES), is(2L)); assertThat(loggedValues.get(NetworkLoggingDecorator.NETWORK_PARTY_BYTES + "_1"), is(130L)); performanceLogger.reset();
assertThat(loggedValues.get(BinaryLoggingDecorator.BINARY_BASIC_RANDOM), is((long) 0)); pl.reset(); loggedValues = pl.getLoggedValues(); assertThat(loggedValues.get(BinaryLoggingDecorator.BINARY_BASIC_XOR), is((long) 0));
is(amountOfEqsInTest)); pl.reset(); loggedValues = pl.getLoggedValues(); assertThat(loggedValues.get(BinaryComparisonLoggingDecorator.BINARY_COMPARISON_GT),
long runningTime = loggedValues.get(EvaluatorLoggingDecorator.SCE_RUNNINGTIMES + 0); assertTrue(runningTime > 0); performanceLogger.reset(); loggedValues = performanceLogger.getLoggedValues(); assertTrue(loggedValues.size() == 0);
assertThat(loggedValues.get(NumericLoggingDecorator.ARITHMETIC_BASIC_RAND), is((long) 0)); pl.reset(); loggedValues = pl.getLoggedValues(); assertThat(loggedValues.get(NumericLoggingDecorator.ARITHMETIC_BASIC_ADD), is((long) 0));
is((long) 2)); logger.reset(); loggedValues = logger.getLoggedValues(); assertThat(loggedValues.get(ComparisonLoggerDecorator.ARITHMETIC_COMPARISON_EQ),