P/Invoke Showdown: [DllImport] vs. [LibraryImport] in Modern .NET

Is [LibraryImport] always faster than [DllImport]? Not necessarily. I benchmarked both across native Windows API calls, string marshalling, handles, out parameters, and allocation-heavy scenarios. The results may surprise you.