Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Things to check
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
The input files are all loaded first. Then each configuration is run for a sufficient number of trials to last at least 5 seconds. The elapsed time, number of invocations (of parse or serialize), and bytes transferred are emitted as a sample along with a calculation of throughput expressed in megabytes per second. Several samples (currently five) are generated for each configuration. All but the median two samples are discarded, with the remaining samples averaged to produce a single number which is reported as the benchmark result.首先加载所有输入文件。随后,每种配置会运行足够多的试验次数,以确保总运行时间不少于 5 秒。每次试验会记录所用时间、调用次数(解析或序列化)以及传输的字节数,并以此生成一个样本,同时计算出以 MB/s(兆字节每秒)为单位的吞吐量。每种配置会生成多个样本(目前为五个),剔除其中非中间两个的样本后,对剩余的两个样本取平均值,作为该配置的最终基准测试结果。