![JAR search and dependency download from the Maven repository](/logo.png)
com.fillumina.performance.consumer.assertion.SuiteIterationsAssertion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of performance-tools Show documentation
Show all versions of performance-tools Show documentation
Configurable tool to easily compare performances of different code
snippets and to take performance telemetry of a running application.
The newest version!
package com.fillumina.performance.consumer.assertion;
/**
* Asserts conditions about tests executed a specified number of iterations
* (it checks the iterations passed along with the
* {@link com.fillumina.performance.producer.LoopPerformances}).
*
* @author Francesco Illuminati
*/
public interface SuiteIterationsAssertion {
/**
* Allows to check the results obtained with a given number
* of iterations. It can be used to check if a particular code improves
* its performances during its execution.
*
* assertion.forIterations(1_000)
* .assertTest("TreeMap").slowerThan("HashMap");
*
*
* @param iterations the number of iterations to check
* @return a {@link PerformanceAssertion} usable in a
*
* fluent interface to define the conditions
* about the specified tests.
*/
PerformanceAssertion forIterations(final long iterations);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy