Who's more intelligent L or Sherlock Holmes

Who is the best detective between L and Sherlock Holmes or are they both on pair?