@@ -54,8 +54,8 @@ public override int GetHashCode(StructBtn x)
5454 static void Main ( string [ ] args )
5555 {
5656 Console . OutputEncoding = System . Text . Encoding . UTF8 ;
57- Console . WriteLine ( "FcsFastBTreeN.Core11.benchmark" ) ;
58- Console . WriteLine ( "------------------------------" ) ;
57+ Console . WriteLine ( String . Format ( "FcsFastBTreeN.Core11.benchmark, {0}" , ( IntPtr . Size == 4 ) ? "32 bit" : "64 bit" ) ) ;
58+ Console . WriteLine ( "-------------------------------------- " ) ;
5959
6060 int iPocetAdd = 0 ;
6161 Random r = new Random ( ( int ) DateTime . Now . Ticks ) ;
@@ -77,7 +77,7 @@ static void Main(string[] args)
7777 long iMemOld = iMem ;
7878 //
7979 //
80- Console . WriteLine ( "------------------------------" ) ;
80+ Console . WriteLine ( "-------------------------------------- " ) ;
8181 Console . WriteLine ( "FcsFastBTreeN" ) ;
8282 TestKV btnTest = new TestKV ( ) ;
8383 var swFcsKV = Stopwatch . StartNew ( ) ;
@@ -113,7 +113,7 @@ static void Main(string[] args)
113113 Console . WriteLine ( $ "{ ( ( double ) ( swFcsKV . Elapsed . TotalMilliseconds * 1000000 ) / iCompareCount ) , 7 : N2} ns [{ swFcsKV . Elapsed . TotalMilliseconds , 11 } ms | { iCompareCount } ]{ iCompareCount / swFcsKV . Elapsed . TotalSeconds , 20 : N0} IOPS") ;
114114 //
115115 //
116- Console . WriteLine ( "------------------------------" ) ;
116+ Console . WriteLine ( "-------------------------------------- " ) ;
117117 Console . WriteLine ( "SortedSet" ) ;
118118 SortedSet < StructBtn > sorted = new SortedSet < StructBtn > ( Comparer < StructBtn > . Create ( ( a , b ) => a . CompareTo ( b ) ) ) ;
119119 var swSorted = Stopwatch . StartNew ( ) ;
@@ -141,7 +141,7 @@ static void Main(string[] args)
141141 Console . WriteLine ( $ "{ ( ( double ) ( swSorted . Elapsed . TotalMilliseconds * 1000000 ) / iCompareCount ) , 7 : N2} ns [{ swSorted . Elapsed . TotalMilliseconds , 11 } ms | { iCompareCount } ]{ iCompareCount / swSorted . Elapsed . TotalSeconds , 20 : N0} IOPS") ;
142142 //
143143 //
144- Console . WriteLine ( "------------------------------" ) ;
144+ Console . WriteLine ( "-------------------------------------- " ) ;
145145 Console . WriteLine ( "HashSet" ) ;
146146 var hash = new HashSet < StructBtn > ( new StructBtnComparer ( ) ) ;
147147 var swHash = Stopwatch . StartNew ( ) ;
@@ -169,7 +169,7 @@ static void Main(string[] args)
169169 Console . WriteLine ( $ "{ ( ( double ) ( swHash . Elapsed . TotalMilliseconds * 1000000 ) / iCompareCount ) , 7 : N2} ns [{ swSorted . Elapsed . TotalMilliseconds , 11 } ms | { iCompareCount } ]{ iCompareCount / swHash . Elapsed . TotalSeconds , 20 : N0} IOPS") ;
170170 //
171171 //
172- Console . WriteLine ( "------------------------------" ) ;
172+ Console . WriteLine ( "-------------------------------------- " ) ;
173173 Console . WriteLine ( "Dictionary" ) ;
174174 var dic = new Dictionary < int , uint > ( ) ;
175175 var swDic = Stopwatch . StartNew ( ) ;
@@ -194,7 +194,7 @@ static void Main(string[] args)
194194 //
195195 iCompareCount = 0 ;
196196 int iCompareEquals = 0 ;
197- Console . WriteLine ( "------------------------------" ) ;
197+ Console . WriteLine ( "-------------------------------------- " ) ;
198198 Console . WriteLine ( "Checking for sorting and matching" ) ;
199199 btnTest . BtnFastFirst ( out fcsKey2 , out fcsValue2 , 2 ) ;
200200 foreach ( StructBtn sortedSet in sorted )
@@ -211,7 +211,7 @@ static void Main(string[] args)
211211 Console . WriteLine ( $ "count SortedSet: { iCompareCount } ") ;
212212 Console . WriteLine ( $ "checking: { iCompareEquals } ") ;
213213
214- Console . WriteLine ( "------------------------------" ) ;
214+ Console . WriteLine ( "-------------------------------------- " ) ;
215215 Console . WriteLine ( "Key ENTER press." ) ;
216216 Console . ReadLine ( ) ;
217217 }
0 commit comments