in src/main/java/org/apache/datasketches/characterization/hash/HashBytesSpeedProfile.java [87:122]
public String getRow() {
final double trialsBytes = trials * x;
final double lgBytesX = Math.log(x) / LN2;
final double total_mS = sumTrials_nS / 1e6;
final double avgBytesFill_nS = sumTrialsFill_nS / trialsBytes;
final double avgBytesMemHash_nS = sumTrialsMmmHash_nS / trialsBytes;
final double avgBytesOtherHash_nS = sumTrialsOtherHash_nS / trialsBytes;
final double fillMBPerSec = 1.0 / (avgBytesFill_nS / 1e3);
final double memHashMBPerSec = 1.0 / (avgBytesMemHash_nS / 1e3);
final double otherHashMBPerSec = 1.0 / (avgBytesOtherHash_nS / 1e3);
final String out = String.format(
"%9.2f\t" //LgBytes
+ "%9d\t" //Bytes
+ "%9d\t" //Trials
+ "%9.3f\t" //Total ms
+ "%9.3f\t" //Read ns
+ "%9.3f\t" //MmmH3 ns
+ "%9.3f\t" //Other ns
+ "%9.0f\t" //Read rate
+ "%9.0f\t" //MmmH3 rate
+ "%10.0f\t" //Other rate
+ "%16s", //sumHash
lgBytesX,
x,
trials,
total_mS,
avgBytesFill_nS,
avgBytesMemHash_nS,
avgBytesOtherHash_nS,
fillMBPerSec,
memHashMBPerSec,
otherHashMBPerSec,
Long.toHexString(sumHash)
);
return out;
}