-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathporcupine_test.go
1697 lines (1410 loc) Β· 37.6 KB
/
porcupine_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
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
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package porcupine
import (
"bufio"
"fmt"
"io"
"os"
"reflect"
"regexp"
"sort"
"strconv"
"testing"
)
type registerInput struct {
op bool // false = put, true = get
value int
}
// a sequential specification of a register
var registerModel = Model{
Init: func() interface{} {
return 0
},
// step function: takes a state, input, and output, and returns whether it
// was a legal operation, along with a new state
Step: func(state, input, output interface{}) (bool, interface{}) {
regInput := input.(registerInput)
if regInput.op == false {
return true, regInput.value // always ok to execute a put
} else {
readCorrectValue := output == state
return readCorrectValue, state // state is unchanged
}
},
DescribeOperation: func(input, output interface{}) string {
inp := input.(registerInput)
switch inp.op {
case true:
return fmt.Sprintf("get() -> '%d'", output.(int))
case false:
return fmt.Sprintf("put('%d')", inp.value)
}
return "<invalid>" // unreachable
},
}
func TestRegisterModel(t *testing.T) {
// examples taken from http://nil.csail.mit.edu/6.824/2017/quizzes/q2-17-ans.pdf
// section VII
ops := []Operation{
{0, registerInput{false, 100}, 0, 0, 100},
{1, registerInput{true, 0}, 25, 100, 75},
{2, registerInput{true, 0}, 30, 0, 60},
}
res := CheckOperations(registerModel, ops)
if res != true {
t.Fatal("expected operations to be linearizable")
}
// same example as above, but with Event
events := []Event{
{0, CallEvent, registerInput{false, 100}, 0},
{1, CallEvent, registerInput{true, 0}, 1},
{2, CallEvent, registerInput{true, 0}, 2},
{2, ReturnEvent, 0, 2},
{1, ReturnEvent, 100, 1},
{0, ReturnEvent, 0, 0},
}
res = CheckEvents(registerModel, events)
if res != true {
t.Fatal("expected operations to be linearizable")
}
ops = []Operation{
{0, registerInput{false, 200}, 0, 0, 100},
{1, registerInput{true, 0}, 10, 200, 30},
{2, registerInput{true, 0}, 40, 0, 90},
}
res = CheckOperations(registerModel, ops)
if res != false {
t.Fatal("expected operations to not be linearizable")
}
// same example as above, but with Event
events = []Event{
{0, CallEvent, registerInput{false, 200}, 0},
{1, CallEvent, registerInput{true, 0}, 1},
{1, ReturnEvent, 200, 1},
{2, CallEvent, registerInput{true, 0}, 2},
{2, ReturnEvent, 0, 2},
{0, ReturnEvent, 0, 0},
}
res = CheckEvents(registerModel, events)
if res != false {
t.Fatal("expected operations to not be linearizable")
}
}
func TestZeroDuration(t *testing.T) {
ops := []Operation{
{0, registerInput{false, 100}, 0, 0, 100},
{1, registerInput{true, 0}, 25, 100, 75},
{2, registerInput{true, 0}, 30, 0, 30},
{3, registerInput{true, 0}, 30, 0, 30},
}
res, info := CheckOperationsVerbose(registerModel, ops, 0)
if res != Ok {
t.Fatal("expected operations to be linearizable")
}
visualizeTempFile(t, registerModel, info)
ops = []Operation{
{0, registerInput{false, 200}, 0, 0, 100},
{1, registerInput{true, 0}, 10, 200, 10},
{2, registerInput{true, 0}, 10, 200, 10},
{3, registerInput{true, 0}, 40, 0, 90},
}
res, _ = CheckOperationsVerbose(registerModel, ops, 0)
if res != Illegal {
t.Fatal("expected operations to not be linearizable")
}
}
type etcdInput struct {
op uint8 // 0 => read, 1 => write, 2 => cas
arg1 int // used for write, or for CAS from argument
arg2 int // used for CAS to argument
}
type etcdOutput struct {
ok bool // used for CAS
exists bool // used for read
value int // used for read
unknown bool // used when operation times out
}
var etcdModel = Model{
Init: func() interface{} { return -1000000 }, // -1000000 corresponds with nil
Step: func(state interface{}, input interface{}, output interface{}) (bool, interface{}) {
st := state.(int)
inp := input.(etcdInput)
out := output.(etcdOutput)
if inp.op == 0 {
// read
ok := (out.exists == false && st == -1000000) || (out.exists == true && st == out.value) || out.unknown
return ok, state
} else if inp.op == 1 {
// write
return true, inp.arg1
} else {
// cas
ok := (inp.arg1 == st && out.ok) || (inp.arg1 != st && !out.ok) || out.unknown
result := st
if inp.arg1 == st {
result = inp.arg2
}
return ok, result
}
},
DescribeOperation: func(input, output interface{}) string {
inp := input.(etcdInput)
out := output.(etcdOutput)
switch inp.op {
case 0:
var read string
if out.exists {
read = fmt.Sprintf("%d", out.value)
} else {
read = "null"
}
return fmt.Sprintf("read() -> %s", read)
case 1:
return fmt.Sprintf("write(%d)", inp.arg1)
case 2:
var ret string
if out.unknown {
ret = "unknown"
} else if out.ok {
ret = "ok"
} else {
ret = "fail"
}
return fmt.Sprintf("cas(%d, %d) -> %s", inp.arg1, inp.arg2, ret)
default:
return "<invalid>"
}
},
}
func parseJepsenLog(filename string) []Event {
file, err := os.Open(filename)
if err != nil {
panic("can't open file")
}
defer file.Close()
reader := bufio.NewReader(file)
invokeRead, _ := regexp.Compile(`^INFO\s+jepsen\.util\s+-\s+(\d+)\s+:invoke\s+:read\s+nil$`)
invokeWrite, _ := regexp.Compile(`^INFO\s+jepsen\.util\s+-\s+(\d+)\s+:invoke\s+:write\s+(\d+)$`)
invokeCas, _ := regexp.Compile(`^INFO\s+jepsen\.util\s+-\s+(\d+)\s+:invoke\s+:cas\s+\[(\d+)\s+(\d+)\]$`)
returnRead, _ := regexp.Compile(`^INFO\s+jepsen\.util\s+-\s+(\d+)\s+:ok\s+:read\s+(nil|\d+)$`)
returnWrite, _ := regexp.Compile(`^INFO\s+jepsen\.util\s+-\s+(\d+)\s+:ok\s+:write\s+(\d+)$`)
returnCas, _ := regexp.Compile(`^INFO\s+jepsen\.util\s+-\s+(\d+)\s+:(ok|fail)\s+:cas\s+\[(\d+)\s+(\d+)\]$`)
timeoutRead, _ := regexp.Compile(`^INFO\s+jepsen\.util\s+-\s+(\d+)\s+:fail\s+:read\s+:timed-out$`)
var events []Event = nil
id := 0
procIdMap := make(map[int]int)
for {
lineBytes, isPrefix, err := reader.ReadLine()
if err == io.EOF {
break
} else if err != nil {
panic("error while reading file: " + err.Error())
}
if isPrefix {
panic("can't handle isPrefix")
}
line := string(lineBytes)
switch {
case invokeRead.MatchString(line):
args := invokeRead.FindStringSubmatch(line)
proc, _ := strconv.Atoi(args[1])
events = append(events, Event{proc, CallEvent, etcdInput{op: 0}, id})
procIdMap[proc] = id
id++
case invokeWrite.MatchString(line):
args := invokeWrite.FindStringSubmatch(line)
proc, _ := strconv.Atoi(args[1])
value, _ := strconv.Atoi(args[2])
events = append(events, Event{proc, CallEvent, etcdInput{op: 1, arg1: value}, id})
procIdMap[proc] = id
id++
case invokeCas.MatchString(line):
args := invokeCas.FindStringSubmatch(line)
proc, _ := strconv.Atoi(args[1])
from, _ := strconv.Atoi(args[2])
to, _ := strconv.Atoi(args[3])
events = append(events, Event{proc, CallEvent, etcdInput{op: 2, arg1: from, arg2: to}, id})
procIdMap[proc] = id
id++
case returnRead.MatchString(line):
args := returnRead.FindStringSubmatch(line)
proc, _ := strconv.Atoi(args[1])
exists := false
value := 0
if args[2] != "nil" {
exists = true
value, _ = strconv.Atoi(args[2])
}
matchId := procIdMap[proc]
delete(procIdMap, proc)
events = append(events, Event{proc, ReturnEvent, etcdOutput{exists: exists, value: value}, matchId})
case returnWrite.MatchString(line):
args := returnWrite.FindStringSubmatch(line)
proc, _ := strconv.Atoi(args[1])
matchId := procIdMap[proc]
delete(procIdMap, proc)
events = append(events, Event{proc, ReturnEvent, etcdOutput{}, matchId})
case returnCas.MatchString(line):
args := returnCas.FindStringSubmatch(line)
proc, _ := strconv.Atoi(args[1])
matchId := procIdMap[proc]
delete(procIdMap, proc)
events = append(events, Event{proc, ReturnEvent, etcdOutput{ok: args[2] == "ok"}, matchId})
case timeoutRead.MatchString(line):
// timing out a read and then continuing operations is fine
// we could just delete the read from the events, but we do this the lazy way
args := timeoutRead.FindStringSubmatch(line)
proc, _ := strconv.Atoi(args[1])
matchId := procIdMap[proc]
delete(procIdMap, proc)
// okay to put the return here in the history
events = append(events, Event{proc, ReturnEvent, etcdOutput{unknown: true}, matchId})
}
}
for proc, matchId := range procIdMap {
events = append(events, Event{proc, ReturnEvent, etcdOutput{unknown: true}, matchId})
}
return events
}
func checkJepsen(t *testing.T, logNum int, correct bool) {
events := parseJepsenLog(fmt.Sprintf("test_data/jepsen/etcd_%03d.log", logNum))
res := CheckEvents(etcdModel, events)
if res != correct {
t.Fatalf("expected output %t, got output %t", correct, res)
}
}
func TestEtcdJepsen000(t *testing.T) {
checkJepsen(t, 0, false)
}
func TestEtcdJepsen001(t *testing.T) {
checkJepsen(t, 1, false)
}
func TestEtcdJepsen002(t *testing.T) {
checkJepsen(t, 2, true)
}
func TestEtcdJepsen003(t *testing.T) {
checkJepsen(t, 3, false)
}
func TestEtcdJepsen004(t *testing.T) {
checkJepsen(t, 4, false)
}
func TestEtcdJepsen005(t *testing.T) {
checkJepsen(t, 5, true)
}
func TestEtcdJepsen006(t *testing.T) {
checkJepsen(t, 6, false)
}
func TestEtcdJepsen007(t *testing.T) {
checkJepsen(t, 7, true)
}
func TestEtcdJepsen008(t *testing.T) {
checkJepsen(t, 8, false)
}
func TestEtcdJepsen009(t *testing.T) {
checkJepsen(t, 9, false)
}
func TestEtcdJepsen010(t *testing.T) {
checkJepsen(t, 10, false)
}
func TestEtcdJepsen011(t *testing.T) {
checkJepsen(t, 11, false)
}
func TestEtcdJepsen012(t *testing.T) {
checkJepsen(t, 12, false)
}
func TestEtcdJepsen013(t *testing.T) {
checkJepsen(t, 13, false)
}
func TestEtcdJepsen014(t *testing.T) {
checkJepsen(t, 14, false)
}
func TestEtcdJepsen015(t *testing.T) {
checkJepsen(t, 15, false)
}
func TestEtcdJepsen016(t *testing.T) {
checkJepsen(t, 16, false)
}
func TestEtcdJepsen017(t *testing.T) {
checkJepsen(t, 17, false)
}
func TestEtcdJepsen018(t *testing.T) {
checkJepsen(t, 18, true)
}
func TestEtcdJepsen019(t *testing.T) {
checkJepsen(t, 19, false)
}
func TestEtcdJepsen020(t *testing.T) {
checkJepsen(t, 20, false)
}
func TestEtcdJepsen021(t *testing.T) {
checkJepsen(t, 21, false)
}
func TestEtcdJepsen022(t *testing.T) {
checkJepsen(t, 22, false)
}
func TestEtcdJepsen023(t *testing.T) {
checkJepsen(t, 23, false)
}
func TestEtcdJepsen024(t *testing.T) {
checkJepsen(t, 24, false)
}
func TestEtcdJepsen025(t *testing.T) {
checkJepsen(t, 25, true)
}
func TestEtcdJepsen026(t *testing.T) {
checkJepsen(t, 26, false)
}
func TestEtcdJepsen027(t *testing.T) {
checkJepsen(t, 27, false)
}
func TestEtcdJepsen028(t *testing.T) {
checkJepsen(t, 28, false)
}
func TestEtcdJepsen029(t *testing.T) {
checkJepsen(t, 29, false)
}
func TestEtcdJepsen030(t *testing.T) {
checkJepsen(t, 30, false)
}
func TestEtcdJepsen031(t *testing.T) {
checkJepsen(t, 31, true)
}
func TestEtcdJepsen032(t *testing.T) {
checkJepsen(t, 32, false)
}
func TestEtcdJepsen033(t *testing.T) {
checkJepsen(t, 33, false)
}
func TestEtcdJepsen034(t *testing.T) {
checkJepsen(t, 34, false)
}
func TestEtcdJepsen035(t *testing.T) {
checkJepsen(t, 35, false)
}
func TestEtcdJepsen036(t *testing.T) {
checkJepsen(t, 36, false)
}
func TestEtcdJepsen037(t *testing.T) {
checkJepsen(t, 37, false)
}
func TestEtcdJepsen038(t *testing.T) {
checkJepsen(t, 38, true)
}
func TestEtcdJepsen039(t *testing.T) {
checkJepsen(t, 39, false)
}
func TestEtcdJepsen040(t *testing.T) {
checkJepsen(t, 40, false)
}
func TestEtcdJepsen041(t *testing.T) {
checkJepsen(t, 41, false)
}
func TestEtcdJepsen042(t *testing.T) {
checkJepsen(t, 42, false)
}
func TestEtcdJepsen043(t *testing.T) {
checkJepsen(t, 43, false)
}
func TestEtcdJepsen044(t *testing.T) {
checkJepsen(t, 44, false)
}
func TestEtcdJepsen045(t *testing.T) {
checkJepsen(t, 45, true)
}
func TestEtcdJepsen046(t *testing.T) {
checkJepsen(t, 46, false)
}
func TestEtcdJepsen047(t *testing.T) {
checkJepsen(t, 47, false)
}
func TestEtcdJepsen048(t *testing.T) {
checkJepsen(t, 48, true)
}
func TestEtcdJepsen049(t *testing.T) {
checkJepsen(t, 49, true)
}
func TestEtcdJepsen050(t *testing.T) {
checkJepsen(t, 50, false)
}
func TestEtcdJepsen051(t *testing.T) {
checkJepsen(t, 51, true)
}
func TestEtcdJepsen052(t *testing.T) {
checkJepsen(t, 52, false)
}
func TestEtcdJepsen053(t *testing.T) {
checkJepsen(t, 53, true)
}
func TestEtcdJepsen054(t *testing.T) {
checkJepsen(t, 54, false)
}
func TestEtcdJepsen055(t *testing.T) {
checkJepsen(t, 55, false)
}
func TestEtcdJepsen056(t *testing.T) {
checkJepsen(t, 56, true)
}
func TestEtcdJepsen057(t *testing.T) {
checkJepsen(t, 57, false)
}
func TestEtcdJepsen058(t *testing.T) {
checkJepsen(t, 58, false)
}
func TestEtcdJepsen059(t *testing.T) {
checkJepsen(t, 59, false)
}
func TestEtcdJepsen060(t *testing.T) {
checkJepsen(t, 60, false)
}
func TestEtcdJepsen061(t *testing.T) {
checkJepsen(t, 61, false)
}
func TestEtcdJepsen062(t *testing.T) {
checkJepsen(t, 62, false)
}
func TestEtcdJepsen063(t *testing.T) {
checkJepsen(t, 63, false)
}
func TestEtcdJepsen064(t *testing.T) {
checkJepsen(t, 64, false)
}
func TestEtcdJepsen065(t *testing.T) {
checkJepsen(t, 65, false)
}
func TestEtcdJepsen066(t *testing.T) {
checkJepsen(t, 66, false)
}
func TestEtcdJepsen067(t *testing.T) {
checkJepsen(t, 67, true)
}
func TestEtcdJepsen068(t *testing.T) {
checkJepsen(t, 68, false)
}
func TestEtcdJepsen069(t *testing.T) {
checkJepsen(t, 69, false)
}
func TestEtcdJepsen070(t *testing.T) {
checkJepsen(t, 70, false)
}
func TestEtcdJepsen071(t *testing.T) {
checkJepsen(t, 71, false)
}
func TestEtcdJepsen072(t *testing.T) {
checkJepsen(t, 72, false)
}
func TestEtcdJepsen073(t *testing.T) {
checkJepsen(t, 73, false)
}
func TestEtcdJepsen074(t *testing.T) {
checkJepsen(t, 74, false)
}
func TestEtcdJepsen075(t *testing.T) {
checkJepsen(t, 75, true)
}
func TestEtcdJepsen076(t *testing.T) {
checkJepsen(t, 76, true)
}
func TestEtcdJepsen077(t *testing.T) {
checkJepsen(t, 77, false)
}
func TestEtcdJepsen078(t *testing.T) {
checkJepsen(t, 78, false)
}
func TestEtcdJepsen079(t *testing.T) {
checkJepsen(t, 79, false)
}
func TestEtcdJepsen080(t *testing.T) {
checkJepsen(t, 80, true)
}
func TestEtcdJepsen081(t *testing.T) {
checkJepsen(t, 81, false)
}
func TestEtcdJepsen082(t *testing.T) {
checkJepsen(t, 82, false)
}
func TestEtcdJepsen083(t *testing.T) {
checkJepsen(t, 83, false)
}
func TestEtcdJepsen084(t *testing.T) {
checkJepsen(t, 84, false)
}
func TestEtcdJepsen085(t *testing.T) {
checkJepsen(t, 85, false)
}
func TestEtcdJepsen086(t *testing.T) {
checkJepsen(t, 86, false)
}
func TestEtcdJepsen087(t *testing.T) {
checkJepsen(t, 87, true)
}
func TestEtcdJepsen088(t *testing.T) {
checkJepsen(t, 88, false)
}
func TestEtcdJepsen089(t *testing.T) {
checkJepsen(t, 89, false)
}
func TestEtcdJepsen090(t *testing.T) {
checkJepsen(t, 90, false)
}
func TestEtcdJepsen091(t *testing.T) {
checkJepsen(t, 91, false)
}
func TestEtcdJepsen092(t *testing.T) {
checkJepsen(t, 92, true)
}
func TestEtcdJepsen093(t *testing.T) {
checkJepsen(t, 93, false)
}
func TestEtcdJepsen094(t *testing.T) {
checkJepsen(t, 94, false)
}
// etcd cluster failed to start up in test 95
func TestEtcdJepsen096(t *testing.T) {
checkJepsen(t, 96, false)
}
func TestEtcdJepsen097(t *testing.T) {
checkJepsen(t, 97, false)
}
func TestEtcdJepsen098(t *testing.T) {
checkJepsen(t, 98, true)
}
func TestEtcdJepsen099(t *testing.T) {
checkJepsen(t, 99, false)
}
func TestEtcdJepsen100(t *testing.T) {
checkJepsen(t, 100, true)
}
func TestEtcdJepsen101(t *testing.T) {
checkJepsen(t, 101, true)
}
func TestEtcdJepsen102(t *testing.T) {
checkJepsen(t, 102, true)
}
func benchJepsen(b *testing.B, logNum int, correct bool) {
events := parseJepsenLog(fmt.Sprintf("test_data/jepsen/etcd_%03d.log", logNum))
b.ResetTimer()
for i := 0; i < b.N; i++ {
res := CheckEvents(etcdModel, events)
if res != correct {
b.Fatalf("expected output %t, got output %t", correct, res)
}
}
}
func BenchmarkEtcdJepsen000(b *testing.B) {
benchJepsen(b, 0, false)
}
func BenchmarkEtcdJepsen001(b *testing.B) {
benchJepsen(b, 1, false)
}
func BenchmarkEtcdJepsen002(b *testing.B) {
benchJepsen(b, 2, true)
}
func BenchmarkEtcdJepsen003(b *testing.B) {
benchJepsen(b, 3, false)
}
func BenchmarkEtcdJepsen004(b *testing.B) {
benchJepsen(b, 4, false)
}
func BenchmarkEtcdJepsen005(b *testing.B) {
benchJepsen(b, 5, true)
}
func BenchmarkEtcdJepsen006(b *testing.B) {
benchJepsen(b, 6, false)
}
func BenchmarkEtcdJepsen007(b *testing.B) {
benchJepsen(b, 7, true)
}
func BenchmarkEtcdJepsen008(b *testing.B) {
benchJepsen(b, 8, false)
}
func BenchmarkEtcdJepsen009(b *testing.B) {
benchJepsen(b, 9, false)
}
func BenchmarkEtcdJepsen010(b *testing.B) {
benchJepsen(b, 10, false)
}
func BenchmarkEtcdJepsen011(b *testing.B) {
benchJepsen(b, 11, false)
}
func BenchmarkEtcdJepsen012(b *testing.B) {
benchJepsen(b, 12, false)
}
func BenchmarkEtcdJepsen013(b *testing.B) {
benchJepsen(b, 13, false)
}
func BenchmarkEtcdJepsen014(b *testing.B) {
benchJepsen(b, 14, false)
}
func BenchmarkEtcdJepsen015(b *testing.B) {
benchJepsen(b, 15, false)
}
func BenchmarkEtcdJepsen016(b *testing.B) {
benchJepsen(b, 16, false)
}
func BenchmarkEtcdJepsen017(b *testing.B) {
benchJepsen(b, 17, false)
}
func BenchmarkEtcdJepsen018(b *testing.B) {
benchJepsen(b, 18, true)
}
func BenchmarkEtcdJepsen019(b *testing.B) {
benchJepsen(b, 19, false)
}
func BenchmarkEtcdJepsen020(b *testing.B) {
benchJepsen(b, 20, false)
}
func BenchmarkEtcdJepsen021(b *testing.B) {
benchJepsen(b, 21, false)
}
func BenchmarkEtcdJepsen022(b *testing.B) {
benchJepsen(b, 22, false)
}
func BenchmarkEtcdJepsen023(b *testing.B) {
benchJepsen(b, 23, false)
}
func BenchmarkEtcdJepsen024(b *testing.B) {
benchJepsen(b, 24, false)
}
func BenchmarkEtcdJepsen025(b *testing.B) {
benchJepsen(b, 25, true)
}
func BenchmarkEtcdJepsen026(b *testing.B) {
benchJepsen(b, 26, false)
}
func BenchmarkEtcdJepsen027(b *testing.B) {
benchJepsen(b, 27, false)
}
func BenchmarkEtcdJepsen028(b *testing.B) {
benchJepsen(b, 28, false)
}
func BenchmarkEtcdJepsen029(b *testing.B) {
benchJepsen(b, 29, false)
}
func BenchmarkEtcdJepsen030(b *testing.B) {
benchJepsen(b, 30, false)
}
func BenchmarkEtcdJepsen031(b *testing.B) {
benchJepsen(b, 31, true)
}
func BenchmarkEtcdJepsen032(b *testing.B) {
benchJepsen(b, 32, false)
}
func BenchmarkEtcdJepsen033(b *testing.B) {
benchJepsen(b, 33, false)
}
func BenchmarkEtcdJepsen034(b *testing.B) {
benchJepsen(b, 34, false)
}
func BenchmarkEtcdJepsen035(b *testing.B) {
benchJepsen(b, 35, false)
}
func BenchmarkEtcdJepsen036(b *testing.B) {
benchJepsen(b, 36, false)
}
func BenchmarkEtcdJepsen037(b *testing.B) {
benchJepsen(b, 37, false)
}
func BenchmarkEtcdJepsen038(b *testing.B) {
benchJepsen(b, 38, true)
}
func BenchmarkEtcdJepsen039(b *testing.B) {
benchJepsen(b, 39, false)
}
func BenchmarkEtcdJepsen040(b *testing.B) {
benchJepsen(b, 40, false)
}
func BenchmarkEtcdJepsen041(b *testing.B) {
benchJepsen(b, 41, false)
}
func BenchmarkEtcdJepsen042(b *testing.B) {
benchJepsen(b, 42, false)
}
func BenchmarkEtcdJepsen043(b *testing.B) {
benchJepsen(b, 43, false)
}
func BenchmarkEtcdJepsen044(b *testing.B) {
benchJepsen(b, 44, false)
}
func BenchmarkEtcdJepsen045(b *testing.B) {
benchJepsen(b, 45, true)
}
func BenchmarkEtcdJepsen046(b *testing.B) {
benchJepsen(b, 46, false)
}
func BenchmarkEtcdJepsen047(b *testing.B) {
benchJepsen(b, 47, false)
}
func BenchmarkEtcdJepsen048(b *testing.B) {
benchJepsen(b, 48, true)
}
func BenchmarkEtcdJepsen049(b *testing.B) {
benchJepsen(b, 49, true)
}
func BenchmarkEtcdJepsen050(b *testing.B) {
benchJepsen(b, 50, false)
}
func BenchmarkEtcdJepsen051(b *testing.B) {
benchJepsen(b, 51, true)
}
func BenchmarkEtcdJepsen052(b *testing.B) {
benchJepsen(b, 52, false)
}
func BenchmarkEtcdJepsen053(b *testing.B) {
benchJepsen(b, 53, true)
}
func BenchmarkEtcdJepsen054(b *testing.B) {
benchJepsen(b, 54, false)
}
func BenchmarkEtcdJepsen055(b *testing.B) {
benchJepsen(b, 55, false)
}
func BenchmarkEtcdJepsen056(b *testing.B) {
benchJepsen(b, 56, true)
}
func BenchmarkEtcdJepsen057(b *testing.B) {
benchJepsen(b, 57, false)
}
func BenchmarkEtcdJepsen058(b *testing.B) {
benchJepsen(b, 58, false)
}
func BenchmarkEtcdJepsen059(b *testing.B) {
benchJepsen(b, 59, false)
}
func BenchmarkEtcdJepsen060(b *testing.B) {
benchJepsen(b, 60, false)
}
func BenchmarkEtcdJepsen061(b *testing.B) {
benchJepsen(b, 61, false)
}
func BenchmarkEtcdJepsen062(b *testing.B) {
benchJepsen(b, 62, false)
}
func BenchmarkEtcdJepsen063(b *testing.B) {
benchJepsen(b, 63, false)
}
func BenchmarkEtcdJepsen064(b *testing.B) {
benchJepsen(b, 64, false)
}
func BenchmarkEtcdJepsen065(b *testing.B) {
benchJepsen(b, 65, false)
}
func BenchmarkEtcdJepsen066(b *testing.B) {
benchJepsen(b, 66, false)
}
func BenchmarkEtcdJepsen067(b *testing.B) {
benchJepsen(b, 67, true)
}
func BenchmarkEtcdJepsen068(b *testing.B) {
benchJepsen(b, 68, false)
}
func BenchmarkEtcdJepsen069(b *testing.B) {
benchJepsen(b, 69, false)
}