github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/queues/all_test.go (about) 1 package goqueuestest 2 // DO NOT EDIT, GENERATED CODE 3 import "testing" 4 5 6 // CFifo 7 8 func TestCFifo(t *testing.T) { 9 fifoTest(t, NewChanFifo(benchIterations)) 10 queuePTest(t, NewChanFifo(benchIterations)) 11 queueP2Test(t, NewChanFifo(benchIterations)) 12 } 13 func BenchmarkCFifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewChanFifo(benchIterations), benchANRN)} 14 func BenchmarkCFifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewChanFifo(benchIterations), benchANRN)} 15 func BenchmarkCFifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewChanFifo(benchIterations), benchANRN)} 16 func BenchmarkCFifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewChanFifo(benchIterations), benchANRN)} 17 func BenchmarkCFifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewChanFifo(benchIterations), benchANRN)} 18 func BenchmarkCFifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewChanFifo(benchIterations), benchANRN)} 19 func BenchmarkCFifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewChanFifo(benchIterations), benchA1R1)} 20 func BenchmarkCFifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewChanFifo(benchIterations), benchA1R1)} 21 func BenchmarkCFifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewChanFifo(benchIterations), benchA1R1)} 22 func BenchmarkCFifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewChanFifo(benchIterations), benchA1R1)} 23 func BenchmarkCFifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewChanFifo(benchIterations), benchA1R1)} 24 func BenchmarkCFifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewChanFifo(benchIterations), benchA1R1)} 25 func BenchmarkCFifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewChanFifo(benchIterations), benchA1R2)} 26 func BenchmarkCFifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewChanFifo(benchIterations), benchA1R2)} 27 func BenchmarkCFifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewChanFifo(benchIterations), benchA1R2)} 28 func BenchmarkCFifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewChanFifo(benchIterations), benchA1R2)} 29 func BenchmarkCFifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewChanFifo(benchIterations), benchA1R2)} 30 func BenchmarkCFifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewChanFifo(benchIterations), benchA1R2)} 31 func BenchmarkCFifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewChanFifo(benchIterations), benchA2R1)} 32 func BenchmarkCFifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewChanFifo(benchIterations), benchA2R1)} 33 func BenchmarkCFifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewChanFifo(benchIterations), benchA2R1)} 34 func BenchmarkCFifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewChanFifo(benchIterations), benchA2R1)} 35 func BenchmarkCFifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewChanFifo(benchIterations), benchA2R1)} 36 func BenchmarkCFifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewChanFifo(benchIterations), benchA2R1)} 37 38 // ZLifo 39 40 func TestZLifo(t *testing.T) { 41 lifoTest(t, NewZLifo()) 42 queuePTest(t, NewZLifo()) 43 queueP2Test(t, NewZLifo()) 44 } 45 func BenchmarkZLifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewZLifo(), benchANRN)} 46 func BenchmarkZLifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewZLifo(), benchANRN)} 47 func BenchmarkZLifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewZLifo(), benchANRN)} 48 func BenchmarkZLifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewZLifo(), benchANRN)} 49 func BenchmarkZLifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewZLifo(), benchANRN)} 50 func BenchmarkZLifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewZLifo(), benchANRN)} 51 func BenchmarkZLifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewZLifo(), benchA1R1)} 52 func BenchmarkZLifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewZLifo(), benchA1R1)} 53 func BenchmarkZLifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewZLifo(), benchA1R1)} 54 func BenchmarkZLifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewZLifo(), benchA1R1)} 55 func BenchmarkZLifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewZLifo(), benchA1R1)} 56 func BenchmarkZLifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewZLifo(), benchA1R1)} 57 func BenchmarkZLifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewZLifo(), benchA1R2)} 58 func BenchmarkZLifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewZLifo(), benchA1R2)} 59 func BenchmarkZLifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewZLifo(), benchA1R2)} 60 func BenchmarkZLifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewZLifo(), benchA1R2)} 61 func BenchmarkZLifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewZLifo(), benchA1R2)} 62 func BenchmarkZLifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewZLifo(), benchA1R2)} 63 func BenchmarkZLifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewZLifo(), benchA2R1)} 64 func BenchmarkZLifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewZLifo(), benchA2R1)} 65 func BenchmarkZLifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewZLifo(), benchA2R1)} 66 func BenchmarkZLifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewZLifo(), benchA2R1)} 67 func BenchmarkZLifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewZLifo(), benchA2R1)} 68 func BenchmarkZLifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewZLifo(), benchA2R1)} 69 70 // ZFifo 71 72 func TestZFifo(t *testing.T) { 73 fifoTest(t, NewZFifo()) 74 queuePTest(t, NewZFifo()) 75 queueP2Test(t, NewZFifo()) 76 } 77 func BenchmarkZFifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewZFifo(), benchANRN)} 78 func BenchmarkZFifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewZFifo(), benchANRN)} 79 func BenchmarkZFifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewZFifo(), benchANRN)} 80 func BenchmarkZFifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewZFifo(), benchANRN)} 81 func BenchmarkZFifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewZFifo(), benchANRN)} 82 func BenchmarkZFifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewZFifo(), benchANRN)} 83 func BenchmarkZFifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewZFifo(), benchA1R1)} 84 func BenchmarkZFifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewZFifo(), benchA1R1)} 85 func BenchmarkZFifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewZFifo(), benchA1R1)} 86 func BenchmarkZFifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewZFifo(), benchA1R1)} 87 func BenchmarkZFifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewZFifo(), benchA1R1)} 88 func BenchmarkZFifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewZFifo(), benchA1R1)} 89 func BenchmarkZFifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewZFifo(), benchA1R2)} 90 func BenchmarkZFifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewZFifo(), benchA1R2)} 91 func BenchmarkZFifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewZFifo(), benchA1R2)} 92 func BenchmarkZFifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewZFifo(), benchA1R2)} 93 func BenchmarkZFifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewZFifo(), benchA1R2)} 94 func BenchmarkZFifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewZFifo(), benchA1R2)} 95 func BenchmarkZFifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewZFifo(), benchA2R1)} 96 func BenchmarkZFifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewZFifo(), benchA2R1)} 97 func BenchmarkZFifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewZFifo(), benchA2R1)} 98 func BenchmarkZFifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewZFifo(), benchA2R1)} 99 func BenchmarkZFifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewZFifo(), benchA2R1)} 100 func BenchmarkZFifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewZFifo(), benchA2R1)} 101 102 // ScLifo 103 104 func TestScLifo(t *testing.T) { 105 lifoTest(t, NewScLifo()) 106 queuePTest(t, NewScLifo()) 107 queueP2Test(t, NewScLifo()) 108 } 109 func BenchmarkScLifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewScLifo(), benchANRN)} 110 func BenchmarkScLifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewScLifo(), benchANRN)} 111 func BenchmarkScLifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewScLifo(), benchANRN)} 112 func BenchmarkScLifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewScLifo(), benchANRN)} 113 func BenchmarkScLifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewScLifo(), benchANRN)} 114 func BenchmarkScLifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewScLifo(), benchANRN)} 115 func BenchmarkScLifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewScLifo(), benchA1R1)} 116 func BenchmarkScLifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewScLifo(), benchA1R1)} 117 func BenchmarkScLifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewScLifo(), benchA1R1)} 118 func BenchmarkScLifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewScLifo(), benchA1R1)} 119 func BenchmarkScLifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewScLifo(), benchA1R1)} 120 func BenchmarkScLifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewScLifo(), benchA1R1)} 121 func BenchmarkScLifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewScLifo(), benchA1R2)} 122 func BenchmarkScLifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewScLifo(), benchA1R2)} 123 func BenchmarkScLifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewScLifo(), benchA1R2)} 124 func BenchmarkScLifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewScLifo(), benchA1R2)} 125 func BenchmarkScLifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewScLifo(), benchA1R2)} 126 func BenchmarkScLifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewScLifo(), benchA1R2)} 127 func BenchmarkScLifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewScLifo(), benchA2R1)} 128 func BenchmarkScLifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewScLifo(), benchA2R1)} 129 func BenchmarkScLifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewScLifo(), benchA2R1)} 130 func BenchmarkScLifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewScLifo(), benchA2R1)} 131 func BenchmarkScLifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewScLifo(), benchA2R1)} 132 func BenchmarkScLifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewScLifo(), benchA2R1)} 133 134 // ScFifo 135 136 func TestScFifo(t *testing.T) { 137 fifoTest(t, NewScFifo()) 138 queuePTest(t, NewScFifo()) 139 queueP2Test(t, NewScFifo()) 140 } 141 func BenchmarkScFifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewScFifo(), benchANRN)} 142 func BenchmarkScFifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewScFifo(), benchANRN)} 143 func BenchmarkScFifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewScFifo(), benchANRN)} 144 func BenchmarkScFifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewScFifo(), benchANRN)} 145 func BenchmarkScFifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewScFifo(), benchANRN)} 146 func BenchmarkScFifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewScFifo(), benchANRN)} 147 func BenchmarkScFifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewScFifo(), benchA1R1)} 148 func BenchmarkScFifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewScFifo(), benchA1R1)} 149 func BenchmarkScFifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewScFifo(), benchA1R1)} 150 func BenchmarkScFifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewScFifo(), benchA1R1)} 151 func BenchmarkScFifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewScFifo(), benchA1R1)} 152 func BenchmarkScFifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewScFifo(), benchA1R1)} 153 func BenchmarkScFifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewScFifo(), benchA1R2)} 154 func BenchmarkScFifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewScFifo(), benchA1R2)} 155 func BenchmarkScFifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewScFifo(), benchA1R2)} 156 func BenchmarkScFifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewScFifo(), benchA1R2)} 157 func BenchmarkScFifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewScFifo(), benchA1R2)} 158 func BenchmarkScFifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewScFifo(), benchA1R2)} 159 func BenchmarkScFifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewScFifo(), benchA2R1)} 160 func BenchmarkScFifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewScFifo(), benchA2R1)} 161 func BenchmarkScFifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewScFifo(), benchA2R1)} 162 func BenchmarkScFifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewScFifo(), benchA2R1)} 163 func BenchmarkScFifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewScFifo(), benchA2R1)} 164 func BenchmarkScFifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewScFifo(), benchA2R1)} 165 166 // SmLifo 167 168 func TestSmLifo(t *testing.T) { 169 lifoTest(t, NewSmLifo()) 170 queuePTest(t, NewSmLifo()) 171 queueP2Test(t, NewSmLifo()) 172 } 173 func BenchmarkSmLifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewSmLifo(), benchANRN)} 174 func BenchmarkSmLifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewSmLifo(), benchANRN)} 175 func BenchmarkSmLifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewSmLifo(), benchANRN)} 176 func BenchmarkSmLifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewSmLifo(), benchANRN)} 177 func BenchmarkSmLifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewSmLifo(), benchANRN)} 178 func BenchmarkSmLifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewSmLifo(), benchANRN)} 179 func BenchmarkSmLifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewSmLifo(), benchA1R1)} 180 func BenchmarkSmLifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewSmLifo(), benchA1R1)} 181 func BenchmarkSmLifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewSmLifo(), benchA1R1)} 182 func BenchmarkSmLifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewSmLifo(), benchA1R1)} 183 func BenchmarkSmLifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewSmLifo(), benchA1R1)} 184 func BenchmarkSmLifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewSmLifo(), benchA1R1)} 185 func BenchmarkSmLifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewSmLifo(), benchA1R2)} 186 func BenchmarkSmLifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewSmLifo(), benchA1R2)} 187 func BenchmarkSmLifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewSmLifo(), benchA1R2)} 188 func BenchmarkSmLifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewSmLifo(), benchA1R2)} 189 func BenchmarkSmLifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewSmLifo(), benchA1R2)} 190 func BenchmarkSmLifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewSmLifo(), benchA1R2)} 191 func BenchmarkSmLifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewSmLifo(), benchA2R1)} 192 func BenchmarkSmLifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewSmLifo(), benchA2R1)} 193 func BenchmarkSmLifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewSmLifo(), benchA2R1)} 194 func BenchmarkSmLifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewSmLifo(), benchA2R1)} 195 func BenchmarkSmLifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewSmLifo(), benchA2R1)} 196 func BenchmarkSmLifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewSmLifo(), benchA2R1)} 197 198 // SmFifo 199 200 func TestSmFifo(t *testing.T) { 201 fifoTest(t, NewSmFifo()) 202 queuePTest(t, NewSmFifo()) 203 queueP2Test(t, NewSmFifo()) 204 } 205 func BenchmarkSmFifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewSmFifo(), benchANRN)} 206 func BenchmarkSmFifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewSmFifo(), benchANRN)} 207 func BenchmarkSmFifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewSmFifo(), benchANRN)} 208 func BenchmarkSmFifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewSmFifo(), benchANRN)} 209 func BenchmarkSmFifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewSmFifo(), benchANRN)} 210 func BenchmarkSmFifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewSmFifo(), benchANRN)} 211 func BenchmarkSmFifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewSmFifo(), benchA1R1)} 212 func BenchmarkSmFifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewSmFifo(), benchA1R1)} 213 func BenchmarkSmFifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewSmFifo(), benchA1R1)} 214 func BenchmarkSmFifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewSmFifo(), benchA1R1)} 215 func BenchmarkSmFifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewSmFifo(), benchA1R1)} 216 func BenchmarkSmFifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewSmFifo(), benchA1R1)} 217 func BenchmarkSmFifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewSmFifo(), benchA1R2)} 218 func BenchmarkSmFifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewSmFifo(), benchA1R2)} 219 func BenchmarkSmFifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewSmFifo(), benchA1R2)} 220 func BenchmarkSmFifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewSmFifo(), benchA1R2)} 221 func BenchmarkSmFifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewSmFifo(), benchA1R2)} 222 func BenchmarkSmFifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewSmFifo(), benchA1R2)} 223 func BenchmarkSmFifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewSmFifo(), benchA2R1)} 224 func BenchmarkSmFifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewSmFifo(), benchA2R1)} 225 func BenchmarkSmFifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewSmFifo(), benchA2R1)} 226 func BenchmarkSmFifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewSmFifo(), benchA2R1)} 227 func BenchmarkSmFifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewSmFifo(), benchA2R1)} 228 func BenchmarkSmFifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewSmFifo(), benchA2R1)} 229 230 // RcLifo 231 232 func TestRcLifo(t *testing.T) { 233 lifoTest(t, NewRcLifo()) 234 queuePTest(t, NewRcLifo()) 235 queueP2Test(t, NewRcLifo()) 236 } 237 func BenchmarkRcLifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewRcLifo(), benchANRN)} 238 func BenchmarkRcLifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewRcLifo(), benchANRN)} 239 func BenchmarkRcLifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewRcLifo(), benchANRN)} 240 func BenchmarkRcLifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewRcLifo(), benchANRN)} 241 func BenchmarkRcLifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewRcLifo(), benchANRN)} 242 func BenchmarkRcLifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewRcLifo(), benchANRN)} 243 func BenchmarkRcLifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewRcLifo(), benchA1R1)} 244 func BenchmarkRcLifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewRcLifo(), benchA1R1)} 245 func BenchmarkRcLifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewRcLifo(), benchA1R1)} 246 func BenchmarkRcLifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewRcLifo(), benchA1R1)} 247 func BenchmarkRcLifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewRcLifo(), benchA1R1)} 248 func BenchmarkRcLifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewRcLifo(), benchA1R1)} 249 func BenchmarkRcLifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewRcLifo(), benchA1R2)} 250 func BenchmarkRcLifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewRcLifo(), benchA1R2)} 251 func BenchmarkRcLifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewRcLifo(), benchA1R2)} 252 func BenchmarkRcLifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewRcLifo(), benchA1R2)} 253 func BenchmarkRcLifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewRcLifo(), benchA1R2)} 254 func BenchmarkRcLifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewRcLifo(), benchA1R2)} 255 func BenchmarkRcLifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewRcLifo(), benchA2R1)} 256 func BenchmarkRcLifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewRcLifo(), benchA2R1)} 257 func BenchmarkRcLifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewRcLifo(), benchA2R1)} 258 func BenchmarkRcLifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewRcLifo(), benchA2R1)} 259 func BenchmarkRcLifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewRcLifo(), benchA2R1)} 260 func BenchmarkRcLifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewRcLifo(), benchA2R1)} 261 262 // RcFifo 263 264 func TestRcFifo(t *testing.T) { 265 fifoTest(t, NewRcFifo()) 266 queuePTest(t, NewRcFifo()) 267 queueP2Test(t, NewRcFifo()) 268 } 269 func BenchmarkRcFifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewRcFifo(), benchANRN)} 270 func BenchmarkRcFifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewRcFifo(), benchANRN)} 271 func BenchmarkRcFifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewRcFifo(), benchANRN)} 272 func BenchmarkRcFifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewRcFifo(), benchANRN)} 273 func BenchmarkRcFifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewRcFifo(), benchANRN)} 274 func BenchmarkRcFifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewRcFifo(), benchANRN)} 275 func BenchmarkRcFifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewRcFifo(), benchA1R1)} 276 func BenchmarkRcFifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewRcFifo(), benchA1R1)} 277 func BenchmarkRcFifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewRcFifo(), benchA1R1)} 278 func BenchmarkRcFifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewRcFifo(), benchA1R1)} 279 func BenchmarkRcFifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewRcFifo(), benchA1R1)} 280 func BenchmarkRcFifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewRcFifo(), benchA1R1)} 281 func BenchmarkRcFifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewRcFifo(), benchA1R2)} 282 func BenchmarkRcFifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewRcFifo(), benchA1R2)} 283 func BenchmarkRcFifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewRcFifo(), benchA1R2)} 284 func BenchmarkRcFifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewRcFifo(), benchA1R2)} 285 func BenchmarkRcFifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewRcFifo(), benchA1R2)} 286 func BenchmarkRcFifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewRcFifo(), benchA1R2)} 287 func BenchmarkRcFifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewRcFifo(), benchA2R1)} 288 func BenchmarkRcFifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewRcFifo(), benchA2R1)} 289 func BenchmarkRcFifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewRcFifo(), benchA2R1)} 290 func BenchmarkRcFifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewRcFifo(), benchA2R1)} 291 func BenchmarkRcFifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewRcFifo(), benchA2R1)} 292 func BenchmarkRcFifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewRcFifo(), benchA2R1)} 293 294 // RmLifo 295 296 func TestRmLifo(t *testing.T) { 297 lifoTest(t, NewRmLifo()) 298 queuePTest(t, NewRmLifo()) 299 queueP2Test(t, NewRmLifo()) 300 } 301 func BenchmarkRmLifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewRmLifo(), benchANRN)} 302 func BenchmarkRmLifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewRmLifo(), benchANRN)} 303 func BenchmarkRmLifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewRmLifo(), benchANRN)} 304 func BenchmarkRmLifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewRmLifo(), benchANRN)} 305 func BenchmarkRmLifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewRmLifo(), benchANRN)} 306 func BenchmarkRmLifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewRmLifo(), benchANRN)} 307 func BenchmarkRmLifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewRmLifo(), benchA1R1)} 308 func BenchmarkRmLifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewRmLifo(), benchA1R1)} 309 func BenchmarkRmLifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewRmLifo(), benchA1R1)} 310 func BenchmarkRmLifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewRmLifo(), benchA1R1)} 311 func BenchmarkRmLifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewRmLifo(), benchA1R1)} 312 func BenchmarkRmLifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewRmLifo(), benchA1R1)} 313 func BenchmarkRmLifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewRmLifo(), benchA1R2)} 314 func BenchmarkRmLifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewRmLifo(), benchA1R2)} 315 func BenchmarkRmLifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewRmLifo(), benchA1R2)} 316 func BenchmarkRmLifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewRmLifo(), benchA1R2)} 317 func BenchmarkRmLifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewRmLifo(), benchA1R2)} 318 func BenchmarkRmLifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewRmLifo(), benchA1R2)} 319 func BenchmarkRmLifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewRmLifo(), benchA2R1)} 320 func BenchmarkRmLifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewRmLifo(), benchA2R1)} 321 func BenchmarkRmLifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewRmLifo(), benchA2R1)} 322 func BenchmarkRmLifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewRmLifo(), benchA2R1)} 323 func BenchmarkRmLifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewRmLifo(), benchA2R1)} 324 func BenchmarkRmLifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewRmLifo(), benchA2R1)} 325 326 // RmFifo 327 328 func TestRmFifo(t *testing.T) { 329 fifoTest(t, NewRmFifo()) 330 queuePTest(t, NewRmFifo()) 331 queueP2Test(t, NewRmFifo()) 332 } 333 func BenchmarkRmFifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewRmFifo(), benchANRN)} 334 func BenchmarkRmFifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewRmFifo(), benchANRN)} 335 func BenchmarkRmFifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewRmFifo(), benchANRN)} 336 func BenchmarkRmFifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewRmFifo(), benchANRN)} 337 func BenchmarkRmFifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewRmFifo(), benchANRN)} 338 func BenchmarkRmFifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewRmFifo(), benchANRN)} 339 func BenchmarkRmFifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewRmFifo(), benchA1R1)} 340 func BenchmarkRmFifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewRmFifo(), benchA1R1)} 341 func BenchmarkRmFifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewRmFifo(), benchA1R1)} 342 func BenchmarkRmFifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewRmFifo(), benchA1R1)} 343 func BenchmarkRmFifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewRmFifo(), benchA1R1)} 344 func BenchmarkRmFifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewRmFifo(), benchA1R1)} 345 func BenchmarkRmFifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewRmFifo(), benchA1R2)} 346 func BenchmarkRmFifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewRmFifo(), benchA1R2)} 347 func BenchmarkRmFifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewRmFifo(), benchA1R2)} 348 func BenchmarkRmFifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewRmFifo(), benchA1R2)} 349 func BenchmarkRmFifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewRmFifo(), benchA1R2)} 350 func BenchmarkRmFifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewRmFifo(), benchA1R2)} 351 func BenchmarkRmFifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewRmFifo(), benchA2R1)} 352 func BenchmarkRmFifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewRmFifo(), benchA2R1)} 353 func BenchmarkRmFifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewRmFifo(), benchA2R1)} 354 func BenchmarkRmFifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewRmFifo(), benchA2R1)} 355 func BenchmarkRmFifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewRmFifo(), benchA2R1)} 356 func BenchmarkRmFifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewRmFifo(), benchA2R1)} 357 358 // PcLifo 359 360 func TestPcLifo(t *testing.T) { 361 lifoTest(t, NewPcLifo()) 362 queuePTest(t, NewPcLifo()) 363 queueP2Test(t, NewPcLifo()) 364 } 365 func BenchmarkPcLifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewPcLifo(), benchANRN)} 366 func BenchmarkPcLifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewPcLifo(), benchANRN)} 367 func BenchmarkPcLifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewPcLifo(), benchANRN)} 368 func BenchmarkPcLifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewPcLifo(), benchANRN)} 369 func BenchmarkPcLifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewPcLifo(), benchANRN)} 370 func BenchmarkPcLifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewPcLifo(), benchANRN)} 371 func BenchmarkPcLifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewPcLifo(), benchA1R1)} 372 func BenchmarkPcLifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewPcLifo(), benchA1R1)} 373 func BenchmarkPcLifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewPcLifo(), benchA1R1)} 374 func BenchmarkPcLifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewPcLifo(), benchA1R1)} 375 func BenchmarkPcLifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewPcLifo(), benchA1R1)} 376 func BenchmarkPcLifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewPcLifo(), benchA1R1)} 377 func BenchmarkPcLifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewPcLifo(), benchA1R2)} 378 func BenchmarkPcLifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewPcLifo(), benchA1R2)} 379 func BenchmarkPcLifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewPcLifo(), benchA1R2)} 380 func BenchmarkPcLifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewPcLifo(), benchA1R2)} 381 func BenchmarkPcLifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewPcLifo(), benchA1R2)} 382 func BenchmarkPcLifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewPcLifo(), benchA1R2)} 383 func BenchmarkPcLifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewPcLifo(), benchA2R1)} 384 func BenchmarkPcLifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewPcLifo(), benchA2R1)} 385 func BenchmarkPcLifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewPcLifo(), benchA2R1)} 386 func BenchmarkPcLifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewPcLifo(), benchA2R1)} 387 func BenchmarkPcLifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewPcLifo(), benchA2R1)} 388 func BenchmarkPcLifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewPcLifo(), benchA2R1)} 389 390 // PcFifo 391 392 func TestPcFifo(t *testing.T) { 393 fifoTest(t, NewPcFifo()) 394 queuePTest(t, NewPcFifo()) 395 queueP2Test(t, NewPcFifo()) 396 } 397 func BenchmarkPcFifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewPcFifo(), benchANRN)} 398 func BenchmarkPcFifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewPcFifo(), benchANRN)} 399 func BenchmarkPcFifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewPcFifo(), benchANRN)} 400 func BenchmarkPcFifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewPcFifo(), benchANRN)} 401 func BenchmarkPcFifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewPcFifo(), benchANRN)} 402 func BenchmarkPcFifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewPcFifo(), benchANRN)} 403 func BenchmarkPcFifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewPcFifo(), benchA1R1)} 404 func BenchmarkPcFifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewPcFifo(), benchA1R1)} 405 func BenchmarkPcFifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewPcFifo(), benchA1R1)} 406 func BenchmarkPcFifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewPcFifo(), benchA1R1)} 407 func BenchmarkPcFifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewPcFifo(), benchA1R1)} 408 func BenchmarkPcFifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewPcFifo(), benchA1R1)} 409 func BenchmarkPcFifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewPcFifo(), benchA1R2)} 410 func BenchmarkPcFifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewPcFifo(), benchA1R2)} 411 func BenchmarkPcFifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewPcFifo(), benchA1R2)} 412 func BenchmarkPcFifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewPcFifo(), benchA1R2)} 413 func BenchmarkPcFifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewPcFifo(), benchA1R2)} 414 func BenchmarkPcFifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewPcFifo(), benchA1R2)} 415 func BenchmarkPcFifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewPcFifo(), benchA2R1)} 416 func BenchmarkPcFifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewPcFifo(), benchA2R1)} 417 func BenchmarkPcFifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewPcFifo(), benchA2R1)} 418 func BenchmarkPcFifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewPcFifo(), benchA2R1)} 419 func BenchmarkPcFifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewPcFifo(), benchA2R1)} 420 func BenchmarkPcFifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewPcFifo(), benchA2R1)} 421 422 // PmLifo 423 424 func TestPmLifo(t *testing.T) { 425 lifoTest(t, NewPmLifo()) 426 queuePTest(t, NewPmLifo()) 427 queueP2Test(t, NewPmLifo()) 428 } 429 func BenchmarkPmLifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewPmLifo(), benchANRN)} 430 func BenchmarkPmLifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewPmLifo(), benchANRN)} 431 func BenchmarkPmLifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewPmLifo(), benchANRN)} 432 func BenchmarkPmLifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewPmLifo(), benchANRN)} 433 func BenchmarkPmLifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewPmLifo(), benchANRN)} 434 func BenchmarkPmLifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewPmLifo(), benchANRN)} 435 func BenchmarkPmLifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewPmLifo(), benchA1R1)} 436 func BenchmarkPmLifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewPmLifo(), benchA1R1)} 437 func BenchmarkPmLifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewPmLifo(), benchA1R1)} 438 func BenchmarkPmLifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewPmLifo(), benchA1R1)} 439 func BenchmarkPmLifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewPmLifo(), benchA1R1)} 440 func BenchmarkPmLifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewPmLifo(), benchA1R1)} 441 func BenchmarkPmLifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewPmLifo(), benchA1R2)} 442 func BenchmarkPmLifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewPmLifo(), benchA1R2)} 443 func BenchmarkPmLifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewPmLifo(), benchA1R2)} 444 func BenchmarkPmLifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewPmLifo(), benchA1R2)} 445 func BenchmarkPmLifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewPmLifo(), benchA1R2)} 446 func BenchmarkPmLifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewPmLifo(), benchA1R2)} 447 func BenchmarkPmLifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewPmLifo(), benchA2R1)} 448 func BenchmarkPmLifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewPmLifo(), benchA2R1)} 449 func BenchmarkPmLifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewPmLifo(), benchA2R1)} 450 func BenchmarkPmLifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewPmLifo(), benchA2R1)} 451 func BenchmarkPmLifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewPmLifo(), benchA2R1)} 452 func BenchmarkPmLifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewPmLifo(), benchA2R1)} 453 454 // PmFifo 455 456 func TestPmFifo(t *testing.T) { 457 fifoTest(t, NewPmFifo()) 458 queuePTest(t, NewPmFifo()) 459 queueP2Test(t, NewPmFifo()) 460 } 461 func BenchmarkPmFifo_ANRNx1(b *testing.B) { runParallelBench(b, 1, NewPmFifo(), benchANRN)} 462 func BenchmarkPmFifo_ANRNx3(b *testing.B) { runParallelBench(b, 3, NewPmFifo(), benchANRN)} 463 func BenchmarkPmFifo_ANRNx5(b *testing.B) { runParallelBench(b, 5, NewPmFifo(), benchANRN)} 464 func BenchmarkPmFifo_ANRNx10(b *testing.B) { runParallelBench(b, 10, NewPmFifo(), benchANRN)} 465 func BenchmarkPmFifo_ANRNx50(b *testing.B) { runParallelBench(b, 50, NewPmFifo(), benchANRN)} 466 func BenchmarkPmFifo_ANRNx100(b *testing.B) { runParallelBench(b, 100, NewPmFifo(), benchANRN)} 467 func BenchmarkPmFifo_A1R1x1(b *testing.B) { runParallelBench(b, 1, NewPmFifo(), benchA1R1)} 468 func BenchmarkPmFifo_A1R1x3(b *testing.B) { runParallelBench(b, 3, NewPmFifo(), benchA1R1)} 469 func BenchmarkPmFifo_A1R1x5(b *testing.B) { runParallelBench(b, 5, NewPmFifo(), benchA1R1)} 470 func BenchmarkPmFifo_A1R1x10(b *testing.B) { runParallelBench(b, 10, NewPmFifo(), benchA1R1)} 471 func BenchmarkPmFifo_A1R1x50(b *testing.B) { runParallelBench(b, 50, NewPmFifo(), benchA1R1)} 472 func BenchmarkPmFifo_A1R1x100(b *testing.B) { runParallelBench(b, 100, NewPmFifo(), benchA1R1)} 473 func BenchmarkPmFifo_A1R2x1(b *testing.B) { runParallelBench(b, 1, NewPmFifo(), benchA1R2)} 474 func BenchmarkPmFifo_A1R2x3(b *testing.B) { runParallelBench(b, 3, NewPmFifo(), benchA1R2)} 475 func BenchmarkPmFifo_A1R2x5(b *testing.B) { runParallelBench(b, 5, NewPmFifo(), benchA1R2)} 476 func BenchmarkPmFifo_A1R2x10(b *testing.B) { runParallelBench(b, 10, NewPmFifo(), benchA1R2)} 477 func BenchmarkPmFifo_A1R2x50(b *testing.B) { runParallelBench(b, 50, NewPmFifo(), benchA1R2)} 478 func BenchmarkPmFifo_A1R2x100(b *testing.B) { runParallelBench(b, 100, NewPmFifo(), benchA1R2)} 479 func BenchmarkPmFifo_A2R1x1(b *testing.B) { runParallelBench(b, 1, NewPmFifo(), benchA2R1)} 480 func BenchmarkPmFifo_A2R1x3(b *testing.B) { runParallelBench(b, 3, NewPmFifo(), benchA2R1)} 481 func BenchmarkPmFifo_A2R1x5(b *testing.B) { runParallelBench(b, 5, NewPmFifo(), benchA2R1)} 482 func BenchmarkPmFifo_A2R1x10(b *testing.B) { runParallelBench(b, 10, NewPmFifo(), benchA2R1)} 483 func BenchmarkPmFifo_A2R1x50(b *testing.B) { runParallelBench(b, 50, NewPmFifo(), benchA2R1)} 484 func BenchmarkPmFifo_A2R1x100(b *testing.B) { runParallelBench(b, 100, NewPmFifo(), benchA2R1)}