Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.2-alpha, 3.0.0-alpha1
-
None
-
Reviewed
Description
Our edit log tests are very slow because they incur a lot of fsyncs as they write out transactions. Since fsync() has no effect except in the case of power outages or system crashes, and we don't care about power outages in the context of tests, we can safely skip the fsync without any loss in coverage.
In my tests, this sped up TestEditLog by about 5x. The testFuzzSequences test case improved from ~83 seconds with fsync to about 5 seconds without. These results are from my SSD laptop - they are probably even more drastic on spinning media.