XML vs Hikage View Tree Benchmark

Merged from 1 benchmark JSON file(s) 7 benchmark cases
Generated at 2026-07-01 05:04:33 UTC
Devices1
Benchmarks7
Fastest medianHikage 210 views: 58.707 ms
Slowest medianDemo Hikage layout: 413.744 ms

Source JSON

DeviceCasesFile
HUAWEI VKY-AL007/Users/fankes/Projects/Libraries/Android/Hikage/samples/demo-benchmark/build/outputs/hikage_benchmark/releaseAndroidTest/additional_test_output/com.highcapable.hikage.benchmark.test-benchmarkData.json

HUAWEI VKY-AL00

API 28 ยท 7 cases

Metrics

CaseGroupMinMedianMaxCVAlloc MedianWarmupRepeat
XML 210 views210 View Tree65.005 ms74.481 ms107.500 ms14.27%32,108911
Hikage 210 views210 View Tree52.305 ms58.707 ms90.444 ms19.18%34,5991141
Hikage 210 views with attrs210 View Tree64.768 ms71.802 ms154.705 ms26.02%37,591821
Hikage 210 views fully attrs210 View Tree84.436 ms96.535 ms144.315 ms17.47%56,121761
Hikage 210 views full view attrs210 View Tree116.459 ms131.763 ms186.968 ms10.15%54,389601
Demo XML layoutDemo Layout285.691 ms398.890 ms562.974 ms14.76%74,494301
Demo Hikage layoutDemo Layout308.423 ms413.744 ms636.157 ms18.13%87,933301

XML Baseline Ratios

CaseBaselineMedian TimeMin TimeAllocationsAllocation Ratio
Hikage 210 viewsXML 210 views0.79x0.80x34,5991.08x
Hikage 210 views with attrsXML 210 views0.96x1.00x37,5911.17x
Hikage 210 views fully attrsXML 210 views1.30x1.30x56,1211.75x
Hikage 210 views full view attrsXML 210 views1.77x1.79x54,3891.69x
Demo Hikage layoutDemo XML layout1.04x1.08x87,9331.18x