← Porting the GFXBench graphics tests to HarmonyOS

This article has no English version yet; the original Chinese text follows. Chart labels are in Chinese as well.

图表数据说明

chart-data.json 与 test-configurations.csv 来自应用菜单指向的 20 个实际描述文件。

这些文件包含测试配置,没有设备 FPS、帧时间或跑分记录。datasetKind 固定为 configuration-not-performance;measuredFps 为 null。

  • resolutionFigure 对应 charts/offscreen-pixels.svg。像素数等于宽乘高,比例基准为 1920×1080。
  • menuConfigurations 保存 API、配置系列、档位、名义时长和离屏尺寸。menuId 唯一;5.0 与 5.1 复用同一个 engineTestId,所以按 menuId 区分配置系列。
  • 屏幕测试的指定宽高留空,由运行时 NativeWindow 决定。
  • nominalPlayTimeMs 是场景的正式计时时长,一次运行的总时长还包括准备和收尾。
  • 流程图与计时边界图是结构示意,段宽和箭头长度不按时间比例。

网站读取示例:

const data = await fetch('./data/chart-data.json').then(r => r.json());
const bars = data.resolutionFigure.map(row => ({
  label: row.label,
  pixels: row.pixels,
  ratio: row.ratioTo1080p
}));

图表标签保留“配置数据”字样,纵轴或横轴单位使用 pixels / 像素数。