input: from typing import Any
  
  def compare_heuristic_performance(data1: Any, data2: Any) -> str:
      """Compares the performance of two heuristics algorithms using the given data.
      It calculates the time taken by each algorithm to run and returns which one is faster.
      
      >>> compare_heuristic_performance(..., ...)
      'Algorithm 1 is faster than algorithm 2'
      
      >>> compare_heuristic_performance(..., ...)
      'Algorithm 2 is faster than algorithm 1'
      
      >>> compare_heuristic_performance(..., ...)
      'Both algorithms have the same performance time'
      """
output:     import time
  
      start_time1 = time.time()
      data1()
      end_time1 = time.time()
      time_taken1 = end_time1 - start_time1
  
      start_time2 = time.time()
      data2()
      end_time2 = time.time()
      time_taken2 = end_time2 - start_time2
  
      if time_taken1 < time_taken2:
          return 'Algorithm 1 is faster than algorithm 2'
      elif time_taken1 > time_taken2:
          return 'Algorithm 2 is faster than algorithm 1'
      else:
          return 'Both algorithms have the same performance time'