code: static private void doLookup(SoftTFIDFDictionary dict,double d,String s,boolean compare,double[] stats)
      {
          System.out.println("lookup: "+s);
          long start1 = System.currentTimeMillis();
          int n1 = dict.lookup(d,s);
          double elapsedSec1 = (System.currentTimeMillis()-start1) / 1000.0;
          dict.showLookup( n1 );
          List saved = new ArrayList(dict.result);
          if (compare) {
              long start2 = System.currentTimeMillis();
              int n2 = dict.slowLookup(d,s);
              double elapsedSec2 = (System.currentTimeMillis()-start2) / 1000.0;
              collectStats(elapsedSec1,elapsedSec2,saved,dict.result,stats);
              boolean differentFromBaseline = false;
              if (n1!=n2) {
                  differentFromBaseline = true;
              } else {
                  for (int j=0; j<n1; j++) {
                      LookupResult savedj = (LookupResult)saved.get(j);
                      if (!dict.getResult(j).equals(savedj.found) || dict.getScore(j)!=savedj.score) {
                          differentFromBaseline = true;
                      }
                  }
              }
              if (differentFromBaseline) {
                  System.out.println("baseline:");
                  dict.showLookup(n2);
              }
          }
      }
docs: for testing