parameters: (case_name, develop_result, pr_result,
                               check_results)
docstring: Compare the differences between develop and pr.
docstring_summary: Compare the differences between develop and pr.
docstring_tokens: Compare the differences between develop and pr .
function: def compare_benchmark_result(case_name, develop_result, pr_result,
                               check_results):
      """Compare the differences between develop and pr.
      """
      develop_speed = develop_result.get("speed")
      pr_speed = pr_result.get("speed")
  
      assert type(develop_speed) == type(
          pr_speed), "The types of comparison results need to be consistent."
  
      if isinstance(develop_speed, dict) and isinstance(pr_speed, dict):
          if check_speed_result(case_name, develop_speed, pr_speed, pr_result):
              check_results["speed"].append(case_name)
      else:
          if check_accuracy_result(case_name, pr_result):
              check_results["accuracy"].append(case_name)
function_tokens: def compare_benchmark_result ( case_name , develop_result , pr_result , check_results ) : develop_speed = develop_result . get ( "speed" ) pr_speed = pr_result . get ( "speed" ) assert type ( develop_speed ) == type ( pr_speed ) , "The types of comparison results need to be consistent." if isinstance ( develop_speed , dict ) and isinstance ( pr_speed , dict ) : if check_speed_result ( case_name , develop_speed , pr_speed , pr_result ) : check_results [ "speed" ] . append ( case_name ) else : if check_accuracy_result ( case_name , pr_result ) : check_results [ "accuracy" ] . append ( case_name )