-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In particular, this adds retrying to the infiniteStream, stringOf, and stringOfN combinators. It also slightly optimizes the loop conditions on buildableOfN, removes lazy from most arbitrary definitions, and cleans up a few other things. This commit does appear to have made some benchmarks slower, although it's possible my machine is just more busy than it was. I've also added a few more benchmarks. Benchmark (genSize) (seedCount) Mode Cnt Score Error Units GenBench.arbitraryString 100 100 avgt 3 600.706 ± 569.014 us/op GenBench.asciiPrintableStr 100 100 avgt 3 432.235 ± 229.533 us/op GenBench.const_ 100 100 avgt 3 2.775 ± 8.017 us/op GenBench.double_ 100 100 avgt 3 9.941 ± 3.020 us/op GenBench.dynamicFrequency 100 100 avgt 3 481.478 ± 253.262 us/op GenBench.eitherIntInt 100 100 avgt 3 30.911 ± 13.071 us/op GenBench.identifier 100 100 avgt 3 186.688 ± 327.920 us/op GenBench.int_ 100 100 avgt 3 11.266 ± 8.500 us/op GenBench.listOfInt 100 100 avgt 3 445.506 ± 403.799 us/op GenBench.mapOfIntInt 100 100 avgt 3 1910.653 ± 2974.722 us/op GenBench.oneOf 100 100 avgt 3 15.945 ± 10.462 us/op GenBench.optionInt 100 100 avgt 3 42.815 ± 18.030 us/op GenBench.sequence 100 100 avgt 3 205.571 ± 42.976 us/op GenBench.staticFrequency 100 100 avgt 3 510.956 ± 111.016 us/op GenBench.testFilter 100 100 avgt 3 1081.890 ± 607.106 us/op GenBench.zipIntInt 100 100 avgt 3 27.987 ± 22.614 us/op
- Loading branch information
Showing
2 changed files
with
90 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters