suggested changes end to end test
This commit is contained in:
parent
be05ab7a62
commit
516f2c474d
2 changed files with 4 additions and 3 deletions
|
|
@ -15,6 +15,7 @@ from codeflash.code_utils.git_utils import (
|
|||
get_repo_owner_and_name,
|
||||
git_root_dir,
|
||||
)
|
||||
from codeflash.code_utils.time_utils import humanize_runtime
|
||||
from codeflash.github.PrComment import FileDiffContent, PrComment
|
||||
from codeflash.models.models import FunctionCalledInTest
|
||||
from codeflash.result.explanation import Explanation
|
||||
|
|
@ -67,8 +68,8 @@ def check_create_pr(
|
|||
file_changes=build_file_changes,
|
||||
pr_comment=PrComment(
|
||||
optimization_explanation=explanation.explanation_message(),
|
||||
best_runtime=explanation.best_runtime_ns,
|
||||
original_runtime=explanation.original_runtime_ns,
|
||||
best_runtime=humanize_runtime(explanation.best_runtime_ns),
|
||||
original_runtime=humanize_runtime(explanation.original_runtime_ns),
|
||||
function_name=explanation.function_name,
|
||||
relative_file_path=relative_path,
|
||||
speedup_x=explanation.speedup_x,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
### 📄 {speedup_pct} ({speedup_x}) speedup for ***`{function_name}` in `{file_path}`***
|
||||
|
||||
⏱️ Runtime : **`{original_runtime} ns`** **→** **`{best_runtime} ns`** (best of `{num_runs}` runs)
|
||||
⏱️ Runtime : **`{original_runtime}`** **→** **`{best_runtime}`** (best of `{num_runs}` runs)
|
||||
Loading…
Reference in a new issue