File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/benchmarks/micro/libraries/System.Runtime Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,18 @@ namespace System.Tests
11
11
public class Perf_Guid
12
12
{
13
13
const string guidStr = "a8a110d5-fc49-43c5-bf46-802db8f843ff" ;
14
+ const string guid2Str = "86A96B5D-F9B2-4CB5-B531-FC7021FA99D7" ;
14
15
15
16
private readonly Guid _guid ;
16
17
private readonly Guid _same ;
18
+ private readonly Guid _guid2 ;
17
19
private readonly byte [ ] _buffer ;
18
20
19
21
public Perf_Guid ( )
20
22
{
21
23
_guid = new Guid ( guidStr ) ;
22
24
_same = new Guid ( guidStr ) ;
25
+ _guid2 = new Guid ( guid2Str ) ;
23
26
_buffer = _guid . ToByteArray ( ) ;
24
27
}
25
28
@@ -35,6 +38,9 @@ public Perf_Guid()
35
38
[ Benchmark ]
36
39
public bool EqualsSame ( ) => _guid . Equals ( _same ) ;
37
40
41
+ [ Benchmark ]
42
+ public bool EqualsNotSame ( ) => _guid . Equals ( _guid2 ) ;
43
+
38
44
[ Benchmark ]
39
45
public bool EqualsOperator ( ) => _guid == _same ;
40
46
You can’t perform that action at this time.
0 commit comments