@@ -216,6 +216,68 @@ Attempting to boot LinuxImage(
216216)
217217```
218218
219+ ## Benchmarks
220+
221+ ### Boot Time
222+
223+ coreboot timestamps may be obtained using ` cbmem -t ` :
224+
225+ ``` text
226+ ubuntu@3mdeb:~$ sudo cbmem -t
227+ 36 entries total:
228+
229+ 0:1st timestamp 29,106,318 (0)
230+ 11:start of bootblock 29,106,553 (235)
231+ 12:end of bootblock 29,109,232 (2,678)
232+ 13:starting to load romstage 29,109,232 (0)
233+ 17:starting LZ4 decompress (ignore for x86) 29,174,661 (65,428)
234+ 18:finished LZ4 decompress (ignore for x86) 29,174,726 (65)
235+ 14:finished loading romstage 29,174,730 (3)
236+ 1:start of romstage 29,174,734 (3)
237+ 4:end of romstage 29,174,885 (151)
238+ 8:starting to load ramstage 29,174,885 (0)
239+ 15:starting LZMA decompress (ignore for x86) 29,536,943 (362,058)
240+ 16:finished LZMA decompress (ignore for x86) 29,583,677 (46,733)
241+ 9:finished loading ramstage 29,586,162 (2,485)
242+ 10:start of ramstage 29,587,320 (1,158)
243+ 30:device enumeration 29,587,383 (62)
244+ 112:started reading uCode 29,587,766 (383)
245+ 113:finished reading uCode 29,617,222 (29,455)
246+ 31:<unknown> 31,365,077 (1,747,855)
247+ 40:device configuration 31,371,820 (6,742)
248+ 50:device enable 31,379,595 (7,775)
249+ 60:device initialization 31,381,611 (2,015)
250+ 70:device setup done 31,884,811 (503,199)
251+ 920:starting APOB read 31,884,813 (2)
252+ 921:starting APOB erase 31,954,244 (69,431)
253+ 922:starting APOB write 39,357,767 (7,403,523)
254+ 923:finished APOB 40,321,934 (964,166)
255+ 75:cbmem post 40,343,709 (21,775)
256+ 80:write tables 40,343,713 (3)
257+ 85:finalize chips 40,352,487 (8,774)
258+ 90:starting to load payload 40,352,494 (6)
259+ 15:starting LZMA decompress (ignore for x86) 54,335,177 (13,982,683)
260+ 16:finished LZMA decompress (ignore for x86) 54,335,213 (35)
261+ 15:starting LZMA decompress (ignore for x86) 56,242,188 (1,906,975)
262+ 16:finished LZMA decompress (ignore for x86) 56,242,324 (136)
263+ 15:starting LZMA decompress (ignore for x86) 56,242,327 (2)
264+ 16:finished LZMA decompress (ignore for x86) 56,242,350 (23)
265+ 99:selfboot jump 57,809,271 (1,566,921)
266+ ```
267+
268+ Stock ASRock UEFI can be easily measured with systemd-analyze, though that's
269+ excluding PSP time, which should be the same as in coreboot:
270+
271+ ``` text
272+ ubuntu@3mdeb:~$ sudo systemd-analyze
273+ [sudo] password for ubuntu:
274+ Startup finished in 2min 58.748s (firmware) + 1.126s (loader) + 539ms (kernel) + 10.353s (initrd) + 10.407s (userspace) = 3min 21.174s
275+ graphical.target reached after 10.402s in userspace.
276+ ```
277+
278+ Including time spent in PSP firmware, coreboot + LinuxBoot reduces the boot time
279+ from 3:27 to 57 seconds.
280+
219281## Support
220282
221283### Hardware support
0 commit comments