@@ -77,85 +77,85 @@ public void GlobalCleanup()
7777 }
7878
7979 [ Benchmark ( Baseline = true ) ]
80- public void ConcurrentDictionary ( )
80+ public int ConcurrentDictionary ( )
8181 {
8282 Func < int , int > func = x => x ;
83- dictionary . GetOrAdd ( 1 , func ) ;
83+ return dictionary . GetOrAdd ( 1 , func ) ;
8484 }
8585
8686 [ Benchmark ( ) ]
87- public void FastConcurrentLru ( )
87+ public int FastConcurrentLru ( )
8888 {
8989 Func < int , int > func = x => x ;
90- fastConcurrentLru . GetOrAdd ( 1 , func ) ;
90+ return fastConcurrentLru . GetOrAdd ( 1 , func ) ;
9191 }
9292
9393 [ Benchmark ( ) ]
94- public void ConcurrentLru ( )
94+ public int ConcurrentLru ( )
9595 {
9696 Func < int , int > func = x => x ;
97- concurrentLru . GetOrAdd ( 1 , func ) ;
97+ return concurrentLru . GetOrAdd ( 1 , func ) ;
9898 }
9999
100100 [ Benchmark ( ) ]
101- public void AtomicFastLru ( )
101+ public int AtomicFastLru ( )
102102 {
103103 Func < int , int > func = x => x ;
104- atomicFastLru . GetOrAdd ( 1 , func ) ;
104+ return atomicFastLru . GetOrAdd ( 1 , func ) ;
105105 }
106106
107107 [ Benchmark ( ) ]
108- public void FastConcurrentTLru ( )
108+ public int FastConcurrentTLru ( )
109109 {
110110 Func < int , int > func = x => x ;
111- fastConcurrentTLru . GetOrAdd ( 1 , func ) ;
111+ return fastConcurrentTLru . GetOrAdd ( 1 , func ) ;
112112 }
113113
114114 [ Benchmark ( ) ]
115- public void FastConcLruAfterAccess ( )
115+ public int FastConcLruAfterAccess ( )
116116 {
117117 Func < int , int > func = x => x ;
118- lruAfterAccess . GetOrAdd ( 1 , func ) ;
118+ return lruAfterAccess . GetOrAdd ( 1 , func ) ;
119119 }
120120
121121 [ Benchmark ( ) ]
122- public void FastConcLruAfter ( )
122+ public int FastConcLruAfter ( )
123123 {
124124 Func < int , int > func = x => x ;
125- lruAfter . GetOrAdd ( 1 , func ) ;
125+ return lruAfter . GetOrAdd ( 1 , func ) ;
126126 }
127127
128128 [ Benchmark ( ) ]
129- public void ConcurrentTLru ( )
129+ public int ConcurrentTLru ( )
130130 {
131131 Func < int , int > func = x => x ;
132- concurrentTlru . GetOrAdd ( 1 , func ) ;
132+ return concurrentTlru . GetOrAdd ( 1 , func ) ;
133133 }
134134
135135 [ Benchmark ( ) ]
136- public void ConcurrentLfu ( )
136+ public int ConcurrentLfu ( )
137137 {
138138 Func < int , int > func = x => x ;
139- concurrentLfu . GetOrAdd ( 1 , func ) ;
139+ return concurrentLfu . GetOrAdd ( 1 , func ) ;
140140 }
141141
142142 [ Benchmark ( ) ]
143- public void ClassicLru ( )
143+ public int ClassicLru ( )
144144 {
145145 Func < int , int > func = x => x ;
146- classicLru . GetOrAdd ( 1 , func ) ;
146+ return classicLru . GetOrAdd ( 1 , func ) ;
147147 }
148148
149149 [ Benchmark ( ) ]
150- public void RuntimeMemoryCacheGet ( )
150+ public int RuntimeMemoryCacheGet ( )
151151 {
152- memoryCache . Get ( "1" ) ;
152+ return ( int ) memoryCache . Get ( "1" ) ;
153153 }
154154
155155 [ Benchmark ( ) ]
156- public void ExtensionsMemoryCacheGet ( )
156+ public int ExtensionsMemoryCacheGet ( )
157157 {
158- exMemoryCache . Get ( 1 ) ;
158+ return ( int ) exMemoryCache . Get ( 1 ) ;
159159 }
160160
161161 public class MemoryCacheOptionsAccessor
0 commit comments