When executed from Management Studio, the stored procedure ends in <0.1 s, but when executed through EF, it takes more than 2 seconds.
Below is the profiler output:

A bit ironic, since the reason for creating SP was to improve performance in an EF request, which took about 1.2 seconds.
UPDATE Whatever the cost, the SP result maps to a complex EF type. I am calling without focus:
var menuTags = db.GetMenuTags(2, "en-US");
SQL generated by EF:
exec [dbo].[GetMenuTags] @CustTypeId=2,@LanguageId='en-US '
The only difference is that empty EF spaces are added at the end of @LanguageId, but they do not affect performance. I tried the same SQL in MSSMS and it works the same as without spaces.
source share