专项测试1-app native性能与webview性能

参考链接

native性能

webview性能

小程序性能

seveniruby:~ seveniruby$ adb shell cat /proc/net/unix  | grep web
0000000000000000: 00000002 00000000 00010000 0001 01 238846 @xweb_devtools_remote_13753
0000000000000000: 00000002 00000000 00010000 0001 01 234189 @xweb_devtools_remote_13247
0000000000000000: 00000002 00000000 00010000 0001 01 231406 @xweb_devtools_remote_13602
0000000000000000: 00000003 00000000 00000000 0001 03 319586 @xweb_devtools_remote_13602

image

自动化测试统计

        raw=self.driver.execute_script("return JSON.stringify(performance.timing)")
        print(raw)
        j=json.loads(raw)
        print(j["connectStart"])