All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lazerycode.jmeter.analyzer.statistics.ValueCountComparator Maven / Gradle / Ivy

Go to download

Parses JMeter result files and computes performance indicators such as average request duration

The newest version!
package com.lazerycode.jmeter.analyzer.statistics;

import java.io.Serializable;
import java.util.Comparator;

/**
 * Compares {@link ValueCount} by value
 *
 * @author Peter Kaul
 */
class ValueCountComparator implements Comparator, Serializable {

  private static final long serialVersionUID = -3567044398536300166L;

  @Override
  public int compare(ValueCount vc1, ValueCount vc2) {
    long v1 = vc1.getValue();
    long v2 = vc2.getValue();

    return v1 < v2 ? -1 : (v1 == v2 ? 0 : 1);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy