Really slow performance on Android

I test the same application on Android and iOS and the same test case run on iOS takes 1:30min but on Andorid almost 6 min. I tried to change automationName from default to UiAutomator2, Espresso also I cannot use executeScript because its native app. Any idea how I can speed up testing on android?
Run application on real device and emulator and there is no difference in time
I use appium in version 1.21.0 and run driver in c# code.

try reduce idle timeout ->

I change idle to 100ms but it didn’t help. I check times and for example, find an element takes 1,5s but then click about 6-7 seconds

Why click? Use touch

Use touch increase time to 6:32min

turn off animations on android

Aamek, can you try running the Android tests on 1.19.1 and let me know your results? I’m currently looking into issues we see on 1.20.0 and above (specifically seeing slowness / incorrect results in appium-uiautomator2-server)

Also what are all your capabilities you’re using? (Turns out we were enabling Ignore Unimportant Views which was breaking a bunch of our finds)

I am having similar slowness issues on android using appium desktop client 1.21.0 and appium java client - 7.5.1. It happens on apps that uses prismic pages which has either an image or an image in the form of animation. Does anyone know a solution to handle this slowness and make it run faster?

In our case, we were using firmware that interacts with our Android app using bluetooth communication. Sometimes a few firmwares were being detected at a time, causing significant slowing of tests. We came up with a solution to create a bluetooth whitelist which would only detect the required firmware device. This completely solved our problems.

Did you find any solution for this? Same issue for me with the animation on the view. Android is taking time compare to ios with automation testing.

try to modify waitForIdleTimeout and to set appium:disableWindowAnimation to true