Commit 21c6a0c
committed
speed up shrinkRawBytes
Before:
Test.Database.LSMTree.Generators
RawBytes
Shrinking satisfies invariant: OK (0.01s)
+++ OK, passed 100 tests (1% no shrinks).
number of shrinks (99 in total):
64% 100 <= n < 1000
30% 10 <= n < 100
6% 1 <= n < 10
lists of key/op pairs
Shrinking satisfies invariant: OK (4.51s)
+++ OK, passed 100 tests (4% no shrinks).
number of shrinks (96 in total):
45% 1000 <= n < 10000
44% 10000 <= n < 100000
10% 100 <= n < 1000
1% 10 <= n < 100
After:
Test.Database.LSMTree.Generators
RawBytes
Shrinking satisfies invariant: OK
+++ OK, passed 100 tests (4% no shrinks).
number of shrinks (96 in total):
52% 10 <= n < 100
45% 100 <= n < 1000
3% 1 <= n < 10
lists of key/op pairs
Shrinking satisfies invariant: OK (1.57s)
+++ OK, passed 100 tests (6% no shrinks).
number of shrinks (94 in total):
56% 1000 <= n < 10000
21% 100 <= n < 1000
19% 10000 <= n < 100000
3% 10 <= n < 1001 parent c20c8d8 commit 21c6a0c
File tree
2 files changed
+45
-8
lines changed- src-extras/Database/LSMTree/Extras
- test/Test/Database/LSMTree
2 files changed
+45
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
454 | 457 | | |
455 | 458 | | |
456 | 459 | | |
457 | | - | |
458 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
459 | 487 | | |
460 | 488 | | |
461 | 489 | | |
| |||
465 | 493 | | |
466 | 494 | | |
467 | 495 | | |
468 | | - | |
469 | | - | |
470 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
471 | 501 | | |
| 502 | + | |
| 503 | + | |
472 | 504 | | |
473 | 505 | | |
474 | 506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
0 commit comments