input: Write a python function to compare the speed of two different functions.
  assert compare_speed(lambda: sum(range(1000)), lambda: sum([i for i in range(1000)])) == "first"
  assert compare_speed(lambda: sum(range(1000)), lambda: sum(range(2000))) == "second"
  assert compare_speed(lambda: sum(range(1000)), lambda: sum(range(1000))) == "same"
output: import time
  
  def compare_speed(func1, func2):
      start_time = time.perf_counter()
      func1()
      elapsed_time1 = time.perf_counter() - start_time
  
      start_time = time.perf_counter()
      func2()
      elapsed_time2 = time.perf_counter() - start_time
  
      if elapsed_time1 < elapsed_time2:
          return "first"
      elif elapsed_time1 > elapsed_time2:
          return "second"
      else:
          return "same"