@@ -125,12 +125,64 @@ extension ByteReaderBenchmarks {
125125 }
126126}
127127
128+ extension LsbBitReaderBenchmarks {
129+ static var allTests : [ ( String , ( LsbBitReaderBenchmarks ) -> ( ) -> Void ) ] {
130+ return [
131+ ( " testBit " , testBit) ,
132+ ( " testBits " , testBits) ,
133+ ( " testIntFromBits " , testIntFromBits) ,
134+ ( " testByteFromBits " , testByteFromBits) ,
135+ ( " testUint16FromBits " , testUint16FromBits) ,
136+ ( " testUint32FromBits " , testUint32FromBits) ,
137+ ( " testUint64FromBits " , testUint64FromBits)
138+ ]
139+ }
140+ }
141+
142+ extension MsbBitReaderBenchmarks {
143+ static var allTests : [ ( String , ( MsbBitReaderBenchmarks ) -> ( ) -> Void ) ] {
144+ return [
145+ ( " testBit " , testBit) ,
146+ ( " testBits " , testBits) ,
147+ ( " testIntFromBits " , testIntFromBits) ,
148+ ( " testByteFromBits " , testByteFromBits) ,
149+ ( " testUint16FromBits " , testUint16FromBits) ,
150+ ( " testUint32FromBits " , testUint32FromBits) ,
151+ ( " testUint64FromBits " , testUint64FromBits)
152+ ]
153+ }
154+ }
155+
156+ extension LsbBitWriterBenchmarks {
157+ static var allTests : [ ( String , ( LsbBitWriterBenchmarks ) -> ( ) -> Void ) ] {
158+ return [
159+ ( " testWriteBit " , testWriteBit) ,
160+ ( " testWriteNumberBitsCount " , testWriteNumberBitsCount) ,
161+ ( " testAppendByte " , testAppendByte)
162+ ]
163+ }
164+ }
165+
166+ extension MsbBitWriterBenchmarks {
167+ static var allTests : [ ( String , ( MsbBitWriterBenchmarks ) -> ( ) -> Void ) ] {
168+ return [
169+ ( " testWriteBit " , testWriteBit) ,
170+ ( " testWriteNumberBitsCount " , testWriteNumberBitsCount) ,
171+ ( " testAppendByte " , testAppendByte)
172+ ]
173+ }
174+ }
175+
128176XCTMain ( [
129177 testCase ( ByteReaderTests . allTests) ,
130178 testCase ( LsbBitReaderTests . allTests) ,
131179 testCase ( MsbBitReaderTests . allTests) ,
132180 testCase ( LsbBitWriterTests . allTests) ,
133181 testCase ( MsbBitWriterTests . allTests) ,
134182
135- testCase ( ByteReaderBenchmarks . allTests)
183+ testCase ( ByteReaderBenchmarks . allTests) ,
184+ testCase ( LsbBitReaderBenchmarks . allTests) ,
185+ testCase ( MsbBitReaderBenchmarks . allTests) ,
186+ testCase ( LsbBitWriterBenchmarks . allTests) ,
187+ testCase ( MsbBitWriterBenchmarks . allTests)
136188] )
0 commit comments