@@ -11,20 +11,20 @@ public class DeduplicationBenchmarks
1111 private const int RangeSize = 200 ;
1212 private const int BitSetCount = 16_384 ;
1313 private const int BitSetRangeStep = 97 ;
14-
15- private byte [ ] _rangeUInt8Keys = null ! ;
16- private sbyte [ ] _rangeInt8Keys = null ! ;
14+ private int [ ] _bitSetInt32Keys = null ! ;
15+ private long [ ] _bitSetInt64Keys = null ! ;
16+ private uint [ ] _bitSetUInt32Keys = null ! ;
17+ private ulong [ ] _bitSetUInt64Keys = null ! ;
1718 private char [ ] _rangeCharKeys = null ! ;
1819 private short [ ] _rangeInt16Keys = null ! ;
19- private ushort [ ] _rangeUInt16Keys = null ! ;
2020 private int [ ] _rangeInt32Keys = null ! ;
21- private uint [ ] _rangeUInt32Keys = null ! ;
2221 private long [ ] _rangeInt64Keys = null ! ;
22+ private sbyte [ ] _rangeInt8Keys = null ! ;
23+ private ushort [ ] _rangeUInt16Keys = null ! ;
24+ private uint [ ] _rangeUInt32Keys = null ! ;
2325 private ulong [ ] _rangeUInt64Keys = null ! ;
24- private int [ ] _bitSetInt32Keys = null ! ;
25- private uint [ ] _bitSetUInt32Keys = null ! ;
26- private long [ ] _bitSetInt64Keys = null ! ;
27- private ulong [ ] _bitSetUInt64Keys = null ! ;
26+
27+ private byte [ ] _rangeUInt8Keys = null ! ;
2828
2929 [ GlobalSetup ]
3030 public void Setup ( )
@@ -45,7 +45,7 @@ public void Setup()
4545
4646 for ( int i = 0 ; i < RangeCount ; i ++ )
4747 {
48- int value = i * 997 % RangeSize ;
48+ int value = ( i * 997 ) % RangeSize ;
4949 _rangeUInt8Keys [ i ] = ( byte ) value ;
5050 _rangeInt8Keys [ i ] = ( sbyte ) ( value - 100 ) ;
5151 _rangeCharKeys [ i ] = ( char ) value ;
@@ -59,7 +59,7 @@ public void Setup()
5959
6060 for ( int i = 0 ; i < BitSetCount ; i ++ )
6161 {
62- int value = i % ( BitSetCount / 2 ) * BitSetRangeStep ;
62+ int value = ( i % ( BitSetCount / 2 ) ) * BitSetRangeStep ;
6363 _bitSetInt32Keys [ i ] = value - 100_000 ;
6464 _bitSetUInt32Keys [ i ] = ( uint ) value + 1_000_000u ;
6565 _bitSetInt64Keys [ i ] = value - 100_000L ;
0 commit comments