Performance: Method Calls vs. Extension Method Calls
I love the concept of extension methods. Code is neater, shorter, obvious to understand, more adaptable, a little more covoluted to find in code, but a great way to encourage a team to all use the same methods.
My one reserve I had about using them was their performance? Was there a noticable difference? It was time to test using my code from this post.
Ticks per 1,000,000 invokes
Method Call Extension Call
66629808 67099032
66786216 67099032
67099032 66786216
66629808 67255440
66786216 66473400
Average Average
66786216 66942624
As you can see, there is really no difference between them. Go extension crazy!