package org.minperf;

/**
 * The information (time and space usage) of a minimum perfect hash function.
 */
public class FunctionInfo {
    
    int size;
    int split;
    int firstPartSize;
    int leafSize;
    int loadFactor;
    double bitsPerKey;
    double generateNanos;
    double evaluateNanos;
    
    @Override
    public String toString() {
        return "size: " + size +
                " leafSize: " + leafSize +
                " loadFactor: " + loadFactor +
                " bitsPerKey: " + bitsPerKey +
                " generateSeconds: " + (generateNanos * size / 1_000_000_000) + 
                " generateNanosPerKey: " + generateNanos + 
                " evaluateNanosPerKey: " + evaluateNanos;
    }

}

@@ -129,20 +129,16 @@
 nInfo %7B%0A
-    
 %0A    int
@@ -243,16 +243,45 @@
 PerKey;%0A
+    double headerBitsPerKey;%0A
     doub
@@ -324,20 +324,16 @@
 eNanos;%0A
-    
 %0A    @Ov
@@ -619,17 +619,16 @@
 0_000) +
- 
 %0A       
@@ -678,17 +678,16 @@
 eNanos +
- 
 %0A       

Test change