input: 
  from typing import Any, Tuple
  
  def compare_heuristics(data1: Any, data2: Any) -> Tuple[float, float, str]:
      """ Compare the performance of two heuristic algorithms by measuring the time 
      taken to execute each of them on the given data. Returns the time taken for 
      each algorithm and a string indicating which algorithm is faster or if they 
      have the same performance.
      >>> compare_heuristics(data1, data2)
      (0.02, 0.03, "Algorithm 1 is faster than algorithm 2")
      >>> compare_heuristics(data1, data2)
      (0.04, 0.04, "Both algorithms have the same performance time")
      >>> compare_heuristics(data1, data2)
      (0.05, 0.02, "Algorithm 2 is faster than algorithm 1")
      """
      start = time.time()
      result1 = heuristics_algorithm1.run(data1)
      end = time.time()
      time1 = end - start
  
      start = time.time()
      result2 = heuristics_algorithm2.run(data2)
      end = time.time()
      time2 = end - start
  
      if time1 < time2:
          performance_comparison = "Algorithm 1 is faster than algorithm 2"
      elif time2 < time1:
          performance_comparison = "Algorithm 2 is faster than algorithm 1"
      else:
          performance_comparison = "Both algorithms have the same performance time"
  
      return time1, time2, performance_comparison
  
output:     import time
      from heuristics_algorithm1 import run as run1
      from heuristics_algorithm2 import run as run2
  
      start = time.time()
      result1 = run1(data1)
      end = time.time()
      time1 = end - start
  
      start = time.time()
      result2 = run2(data2)
      end = time.time()
      time2 = end - start
  
      if time1 < time2:
          performance_comparison = "Algorithm 1 is faster than algorithm 2"
      elif time2 < time1:
          performance_comparison = "Algorithm 2 is faster than algorithm 1"
      else:
          performance_comparison = "Both algorithms have the same performance time"
  
      return time1, time2, performance_comparison