(extra)
| 191 | } |
| 192 | |
| 193 | function parseBenchmarkExtra(extra) { |
| 194 | if (typeof extra !== 'string') { |
| 195 | return {} |
| 196 | } |
| 197 | |
| 198 | const values = {} |
| 199 | for (const part of extra.split(';')) { |
| 200 | const [key, rawValue] = part.trim().split('=') |
| 201 | const value = Number(rawValue) |
| 202 | if (key && Number.isFinite(value)) { |
| 203 | values[key] = value |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | return { |
| 208 | rawBytes: values.raw, |
| 209 | brotliBytes: values.brotli, |
| 210 | initialGzipBytes: values.initial_gzip, |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | function resolveBaselineFromHistory(historyEntries, baseSha) { |
| 215 | if (!historyEntries.length) { |
no outgoing calls
no test coverage detected