Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compare two different commits in benchmark? #325

Open
alaershov opened this issue Mar 12, 2021 · 3 comments
Open

How to compare two different commits in benchmark? #325

alaershov opened this issue Mar 12, 2021 · 3 comments

Comments

@alaershov
Copy link

alaershov commented Mar 12, 2021

I tried using two scenarios like this:

incremental_build_before {
    tasks = ["assembleDebug"]
    apply-abi-change-to = "app/src/main/java/com/example/profiledapplication/MainActivity.kt"
    git-checkout {
        build = "8e8fdcbb6a93f465cfbd48882c27b53a8297d469"
    }
}

incremental_build_after {
    tasks = ["assembleDebug"]
    apply-abi-change-to = "app/src/main/java/com/example/profiledapplication/MainActivity.kt"
    git-checkout {
        build = "c7afcd0a92921d3e56c8730a31ba089fd391cf04"
    }
}

But after running the first scenario I get
error: Your local changes to the following files would be overwritten by checkout: app/src/main/java/com/example/profiledapplication/MainActivity.kt Please commit your changes or stash them before you switch branches.

@alaershov alaershov changed the title How to compate two different commits in benchmark? How to compare two different commits in benchmark? Mar 15, 2021
@alaershov
Copy link
Author

It works fine without apply-abi-change-to, is there any way to make them work together?

@alaershov
Copy link
Author

Seems that ApplyAbiChangeToSourceFileMutator executes before GitCheckoutMutator. It probably should go before all apply change mutators.

@gabrielfeo
Copy link

gabrielfeo commented Feb 18, 2022

What I've been doing to work around this is I benchmark the two scenarios separately and then merge the result HTMLs with this script: merge-gradle-profiler-results.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants