Skip to content

Commit

Permalink
[format][tests] FormatPerformanceTest change to lessthan to pass gith…
Browse files Browse the repository at this point in the history
…ub tests, may machine not diffrence
  • Loading branch information
ranxianglei authored and ranxianglei.rxl committed Nov 13, 2024
1 parent a0efae2 commit 016620c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public void testFormatPerformance() {
double objectCacheCost = newFileFormatWithObjectCache();
double serviceCost = newFileFormatWithServiceLoader();
double factoryUtilCost = newFileFormatWithFactoryUtil();
assertThat(objectCacheCost * 10 < serviceCost).isTrue();
assertThat(objectCacheCost * 10 < factoryUtilCost).isTrue();
assertThat(objectCacheCost).isLessThan(serviceCost);
assertThat(objectCacheCost).isLessThan(factoryUtilCost);
}

private double newFileFormatWithServiceLoader() {
Expand Down

0 comments on commit 016620c

Please sign in to comment.