Skip to content

Commit

Permalink
chore: remove time test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMessik committed Oct 30, 2023
1 parent 75c91aa commit ab587d3
Showing 1 changed file with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,36 +248,4 @@ public void evaluate_0000_trim_bogus() throws Exception {
}
}
}

private long getExecTime(SourceIterator iterator) {
long start = System.currentTimeMillis();

iterator.forEachRemaining(new Consumer<>() {
int count = 0;

@Override
public void accept(Record source) {
if (count < 10) {
System.out.println(((CSVRecord) source).getData());
}
count++;
}
});

long end = System.currentTimeMillis();
return end - start;
}


@Test
@Disabled
public void execTime() throws Exception {
Access access = new LocalFileAccess("/home/messik/Work/large_files/large_csv/taxonmappings/joined.tsv", "", "tsv", "UTF-8");
CSVWConfiguration config = CSVWConfiguration.builder().withDelimiter('\t').build();

try(SourceIterator iterator = new CSVWSourceIterator(access, config)) {
long execTime = getExecTime(iterator);
System.out.printf("Execution took %f seconds", execTime / 1000.0);
}
}
}

0 comments on commit ab587d3

Please sign in to comment.