Skip to content

Instantly share code, notes, and snippets.

@leppie
Created May 16, 2014 15:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leppie/0a8ccbb56e9bbe0714a7 to your computer and use it in GitHub Desktop.
Save leppie/0a8ccbb56e9bbe0714a7 to your computer and use it in GitHub Desktop.
D:\test>csc /o SlowDelegates01.cs
Microsoft (R) Visual C# Compiler version 4.0.30319.34209
for Microsoft (R) .NET Framework 4.5
Copyright (C) Microsoft Corporation. All rights reserved.
D:\test>SlowDelegates01.exe
1 => 00:00:00.0159245
2 => 00:00:00.0147080
3 => 00:00:00.0145497
4 => 00:00:00.0145023
5 => 00:00:00.0144067
6 => 00:00:00.1709685
7 => 00:00:00.0145489
8 => 00:00:00.0145190
9 => 00:00:00.0144865
10 => 00:00:00.0221348
11 => 00:00:00.0219221
12 => 00:00:00.0219461
13 => 00:00:00.0144675
14 => 00:00:00.0145056
15 => 00:00:00.0217951
16 => 00:00:00.0218334
17 => 00:00:00.0724716
18 => 00:00:00.0721717
19 => 00:00:00.0724701
20 => 00:00:00.0716445
21 => 00:00:00.0737790
22 => 00:00:00.0145793
23 => 00:00:00.1944871
24 => 00:00:00.0145527
25 => 00:00:00.1756475
26 => 00:00:00.0146284
27 => 00:00:00.1937806
28 => 00:00:00.0144348
29 => 00:00:00.0155228
30 => 00:00:00.0143973
31 => 00:00:00.1733766
32 => 00:00:00.0146521
33 => 00:00:00.1942879
34 => 00:00:00.0146413
35 => 00:00:00.0159350
36 => 00:00:00.0092602
37 => 00:00:00.0092260
38 => 00:00:00.0090934
39 => 00:00:00.0090747
40 => 00:00:00.0092807
41 => 00:00:00.0092517
42 => 00:00:00.0145919
43 => 00:00:00.2012699
44 => 00:00:00.0146685
45 => 00:00:00.0165556
46 => 00:00:00.0143906
47 => 00:00:00.2018975
48 => 00:00:00.0144359
49 => 00:00:00.0166512
50 => 00:00:00.0090756
51 => 00:00:00.0090396
52 => 00:00:00.0092763
53 => 00:00:00.0093360
54 => 00:00:00.0144008
55 => 00:00:00.1740957
56 => 00:00:00.0143859
57 => 00:00:00.1766808
58 => 00:00:00.0093339
59 => 00:00:00.0092140
60 => 00:00:00.0090987
61 => 00:00:00.1658182
62 => 00:00:00.1729392
63 => 00:00:00.1738011
D:\test>set COMPLUS_AltJit=*
D:\test>SlowDelegates01.exe
1 => 00:00:00.0095311
2 => 00:00:00.0084413
3 => 00:00:00.0084059
4 => 00:00:00.0084416
5 => 00:00:00.0084834
6 => 00:00:00.0084410
7 => 00:00:00.0088611
8 => 00:00:00.0089076
9 => 00:00:00.0088968
10 => 00:00:00.0147039
11 => 00:00:00.0150965
12 => 00:00:00.0145781
13 => 00:00:00.0090706
14 => 00:00:00.0090882
15 => 00:00:00.0151553
16 => 00:00:00.0146878
17 => 00:00:00.0635738
18 => 00:00:00.0639278
19 => 00:00:00.0654559
20 => 00:00:00.0642245
21 => 00:00:00.0670395
22 => 00:00:00.0085934
23 => 00:00:00.1877564
24 => 00:00:00.0086560
25 => 00:00:00.1659402
26 => 00:00:00.0084340
27 => 00:00:00.1891455
28 => 00:00:00.0098860
29 => 00:00:00.1931401
30 => 00:00:00.0085273
31 => 00:00:00.1745164
32 => 00:00:00.0086335
33 => 00:00:00.1894565
34 => 00:00:00.0090077
35 => 00:00:00.1933163
36 => 00:00:00.0080563
37 => 00:00:00.0079872
38 => 00:00:00.0080209
39 => 00:00:00.0079887
40 => 00:00:00.0086408
41 => 00:00:00.0086098
42 => 00:00:00.0088579
43 => 00:00:00.1963390
44 => 00:00:00.0090835
45 => 00:00:00.1999952
46 => 00:00:00.0084510
47 => 00:00:00.1975523
48 => 00:00:00.0089053
49 => 00:00:00.2003308
50 => 00:00:00.0079875
51 => 00:00:00.0080054
52 => 00:00:00.0084422
53 => 00:00:00.0084831
54 => 00:00:00.0084354
55 => 00:00:00.1688822
56 => 00:00:00.0084199
57 => 00:00:00.1678682
58 => 00:00:00.0080779
59 => 00:00:00.0079884
60 => 00:00:00.0079852
61 => 00:00:00.1665133
62 => 00:00:00.0084445
63 => 00:00:00.1670900
D:\test>set COMPLUS_AltJit=
D:\test>ngen SlowDelegates01.exe
Microsoft (R) CLR Native Image Generator - Version 4.0.30319.34209
Copyright (c) Microsoft Corporation. All rights reserved.
WARNING: This syntax is deprecated or you mis-typed your command. Run "ngen /?" to display a list of the currently supported parameters.
1> Compiling assembly D:\test\SlowDelegates01.exe (CLR v4.0.30319) ...
D:\test>SlowDelegates01.exe
1 => 00:00:00.0113822
2 => 00:00:00.0106235
3 => 00:00:00.0103207
4 => 00:00:00.0105715
5 => 00:00:00.0104249
6 => 00:00:00.1770951
7 => 00:00:00.0124123
8 => 00:00:00.0125796
9 => 00:00:00.0123529
10 => 00:00:00.0183891
11 => 00:00:00.0179212
12 => 00:00:00.0185775
13 => 00:00:00.0123640
14 => 00:00:00.0123760
15 => 00:00:00.0181966
16 => 00:00:00.0183940
17 => 00:00:00.0540857
18 => 00:00:00.0550216
19 => 00:00:00.0587409
20 => 00:00:00.0505989
21 => 00:00:00.0548150
22 => 00:00:00.0105952
23 => 00:00:00.1996049
24 => 00:00:00.0105492
25 => 00:00:00.1813700
26 => 00:00:00.0106390
27 => 00:00:00.1798967
28 => 00:00:00.0126454
29 => 00:00:00.0137118
30 => 00:00:00.0106589
31 => 00:00:00.1871534
32 => 00:00:00.0105311
33 => 00:00:00.1858998
34 => 00:00:00.0125770
35 => 00:00:00.0192068
36 => 00:00:00.0100919
37 => 00:00:00.0099249
38 => 00:00:00.0098652
39 => 00:00:00.0097359
40 => 00:00:00.0120597
41 => 00:00:00.0120858
42 => 00:00:00.0109059
43 => 00:00:00.2225352
44 => 00:00:00.0128839
45 => 00:00:00.0158976
46 => 00:00:00.0110542
47 => 00:00:00.2318622
48 => 00:00:00.0130746
49 => 00:00:00.0204121
50 => 00:00:00.0103819
51 => 00:00:00.0103643
52 => 00:00:00.0121422
53 => 00:00:00.0122423
54 => 00:00:00.0103687
55 => 00:00:00.1842482
56 => 00:00:00.0105761
57 => 00:00:00.1876458
58 => 00:00:00.0097175
59 => 00:00:00.0098304
60 => 00:00:00.0099808
61 => 00:00:00.1816023
62 => 00:00:00.1784847
63 => 00:00:00.1845464
D:\test>corflags SlowDelegates01.exe
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 4.0.30319.18020
Copyright (c) Microsoft Corporation. All rights reserved.
Version : v4.0.30319
CLR Header: 2.5
PE : PE32
CorFlags : 0x1
ILONLY : 1
32BITREQ : 0
32BITPREF : 0
Signed : 0
D:\test>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment