goexecutionblock

command module
v0.0.0-...-1f5ea80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2023 License: ISC Imports: 5 Imported by: 0

README

Go Execution Block

author Harald Rudell holds M.Sc.EE and M.Sc.BA&E.
5 years Go, 6 years Java, 8 years Node.js/React

Go execution block checks for how long periods Go is not providing time stamps. This could be due to things like:

  • Go runtime stop-the-world for functions like the Go garbage collector
  • operating system swap of main memory to and from storage
  • high processor load, ie. execution units temporarily unavailable

Conclusions:

  • go1.20.1 M1 Max macOS 13.2.1: 170 ms
  • go1.20.1 M1 macOS 13.2.1: 74 ms
  • go1.20.1 amd64 macOS 13.2.1: 1.3 s
  • go1.20.1 amd64 Linux 5.15.0-56-generic: 98 ms
  • go1.20.1 amd64 Linux 5.15.0-58-generic: 38 ms

Intially open-sourced on March 16, 2023

© 2023–present Harald Rudell <harald.rudell@gmail.com> (https://haraldrudell.github.io/haraldrudell/)

Appendix

macOS 13.2.1 Darwin xnu amd64: 1.29 s

gtimeout 0.0.1 2023-03-06 08:03:27-08:00 darwin-amd64
© 2023–present Harald Rudell  (https://pkg.go.dev/github.com/haraldrudell/parl#section-readme)
^C to exit
2023-03-06 08:03:27.269950000-08:00 execution halted for 1.05824ms
2023-03-06 08:03:27.271008000-08:00 execution halted for 1.121198ms
2023-03-06 08:03:27.273012000-08:00 execution halted for 1.133759ms
2023-03-06 08:03:27.274986000-08:00 execution halted for 1.167168ms
2023-03-06 08:03:27.276982000-08:00 execution halted for 1.195942ms
2023-03-06 08:03:27.391070000-08:00 execution halted for 1.251592ms
2023-03-06 08:03:27.447952000-08:00 execution halted for 1.273158ms
2023-03-06 08:03:29.165973000-08:00 execution halted for 1.279458ms
2023-03-06 08:03:30.003902000-08:00 execution halted for 1.280481ms
2023-03-06 08:03:33.004824000-08:00 execution halted for 1.310677ms
2023-03-06 08:03:36.362763000-08:00 execution halted for 1.315302ms
2023-03-06 08:03:38.622625000-08:00 execution halted for 1.316182ms
2023-03-06 08:03:48.005269000-08:00 execution halted for 1.316617ms
2023-03-06 08:03:52.020140000-08:00 execution halted for 1.320909ms
2023-03-06 08:03:58.682934000-08:00 execution halted for 1.328687ms
2023-03-06 08:04:00.505049000-08:00 execution halted for 1.436433ms
2023-03-06 08:04:21.504334000-08:00 execution halted for 1.876285ms
2023-03-06 08:04:30.755952000-08:00 execution halted for 10.526822ms
2023-03-06 09:26:32.796600000-08:00 execution halted for 10.627343ms
2023-03-06 10:02:34.003875000-08:00 execution halted for 10.734304ms
2023-03-06 11:56:37.261980000-08:00 execution halted for 10.821452ms
2023-03-06 12:11:03.572325000-08:00 execution halted for 14.173742ms
2023-03-06 12:45:34.835601000-08:00 execution halted for 15.350723ms
2023-03-06 12:45:55.068470000-08:00 execution halted for 1.15638616s
2023-03-06 13:46:38.575236000-08:00 execution halted for 1.292162565s

Linux 5.15.0-56-generic amd64: 98 ms

gtimeout 0.0.1 2023-03-06 08:00:12-08:00 linux-amd64
© 2023–present Harald Rudell  (https://pkg.go.dev/github.com/haraldrudell/parl#section-readme)
^C to exit
2023-03-06 08:00:12.639152396-08:00 execution halted for 1.069242ms
2023-03-06 08:00:12.640221645-08:00 execution halted for 1.187032ms
2023-03-06 08:00:12.696834797-08:00 execution halted for 1.212294ms
2023-03-06 08:00:12.759320691-08:00 execution halted for 1.22249ms
2023-03-06 08:00:13.057173191-08:00 execution halted for 1.3389ms
2023-03-06 08:00:14.871799718-08:00 execution halted for 1.732342ms
2023-03-06 08:00:20.810081393-08:00 execution halted for 2.231156ms
2023-03-06 08:00:20.813571916-08:00 execution halted for 2.674157ms
2023-03-06 08:00:20.817778420-08:00 execution halted for 8.478676ms
2023-03-06 08:19:08.153693189-08:00 execution halted for 20.824034ms
2023-03-06 08:22:53.430166506-08:00 execution halted for 22.305231ms
2023-03-06 09:47:43.735914098-08:00 execution halted for 23.276665ms
2023-03-06 16:42:36.918003633-08:00 execution halted for 60.486215ms
2023-03-06 16:42:42.038797650-08:00 execution halted for 93.088752ms
2023-03-14 16:53:50.581969899-07:00 execution halted for 97.711259ms

Linux 5.15.0-58-generic amd64: 38 ms

gtimeout 0.0.1 2023-03-06 08:01:25-08:00 linux-amd64
© 2023–present Harald Rudell  (https://pkg.go.dev/github.com/haraldrudell/parl#section-readme)
^C to exit
2023-03-06 08:01:25.281272289-08:00 execution halted for 1.067801ms
2023-03-06 08:01:25.283406149-08:00 execution halted for 1.072466ms
2023-03-06 08:01:25.284478622-08:00 execution halted for 1.100432ms
2023-03-06 08:01:25.287775805-08:00 execution halted for 1.102669ms
2023-03-06 08:01:25.289954151-08:00 execution halted for 1.157896ms
2023-03-06 08:01:25.294462697-08:00 execution halted for 1.158776ms
2023-03-06 08:01:25.300139171-08:00 execution halted for 1.159101ms
2023-03-06 08:01:25.304704691-08:00 execution halted for 1.17652ms
2023-03-06 08:01:25.323031239-08:00 execution halted for 1.257069ms
2023-03-06 08:01:25.380587112-08:00 execution halted for 1.325028ms
2023-03-06 08:01:25.387943673-08:00 execution halted for 1.329549ms
2023-03-06 08:01:25.408886115-08:00 execution halted for 1.677163ms
2023-03-06 08:01:26.999412068-08:00 execution halted for 1.866742ms
2023-03-06 08:01:29.542248432-08:00 execution halted for 2.121191ms
2023-03-06 08:01:35.646674615-08:00 execution halted for 3.857834ms
2023-03-06 08:01:45.905133662-08:00 execution halted for 6.013038ms
2023-03-06 08:04:24.078105074-08:00 execution halted for 10.159186ms
2023-03-06 08:08:27.076291450-08:00 execution halted for 10.84066ms
2023-03-06 08:27:55.167034186-08:00 execution halted for 20.1861ms
2023-03-06 13:54:22.282630939-08:00 execution halted for 20.506308ms
2023-03-07 21:19:21.830383810-08:00 execution halted for 20.609013ms
2023-03-08 05:53:32.602928552-08:00 execution halted for 20.666476ms
2023-03-08 08:35:40.574539556-08:00 execution halted for 30.043596ms
2023-03-08 10:31:41.982959466-08:00 execution halted for 36.834061ms
2023-03-12 09:18:16.404993677-07:00 execution halted for 38.336073ms

macOS 13.2.1 Darwin xnu M1 Max: 170 ms

gtimeout 0.0.1 2023-03-15 17:15:01-07:00 c66:darwin-arm64
© 2023–present Harald Rudell  (https://pkg.go.dev/github.com/haraldrudell/parl#section-readme)
^C to exit
2023-03-15 17:15:01.291432000-07:00 execution halted for 1.118958ms
2023-03-15 17:15:01.318432000-07:00 execution halted for 1.122958ms
2023-03-15 17:15:01.554437000-07:00 execution halted for 1.126584ms
2023-03-15 17:15:01.599428000-07:00 execution halted for 1.128583ms
2023-03-15 17:15:01.620433000-07:00 execution halted for 1.177542ms
2023-03-15 17:15:01.625426000-07:00 execution halted for 1.198167ms
2023-03-15 17:15:02.210520000-07:00 execution halted for 3.302375ms
2023-03-15 17:15:04.218431000-07:00 execution halted for 3.52675ms
2023-03-15 17:15:06.222453000-07:00 execution halted for 3.822167ms
2023-03-15 17:15:08.236317000-07:00 execution halted for 4.072625ms
2023-03-15 17:15:14.258225000-07:00 execution halted for 4.170375ms
2023-03-15 17:15:20.285194000-07:00 execution halted for 4.220459ms
2023-03-15 17:15:30.322008000-07:00 execution halted for 4.65925ms
2023-03-15 17:15:42.394835000-07:00 execution halted for 5.183625ms
2023-03-15 17:15:58.480403000-07:00 execution halted for 6.398417ms
2023-03-15 17:16:10.002274000-07:00 execution halted for 11.091667ms
2023-03-15 17:16:12.004277000-07:00 execution halted for 11.144875ms
2023-03-15 17:16:14.557184000-07:00 execution halted for 11.46175ms
2023-03-15 17:16:30.999605000-07:00 execution halted for 11.974917ms
2023-03-15 17:20:55.772964000-07:00 execution halted for 12.021459ms
2023-03-15 17:22:54.273882000-07:00 execution halted for 19.421875ms
2023-03-15 17:38:23.999322000-07:00 execution halted for 23.021333ms
2023-03-15 18:07:36.001857000-07:00 execution halted for 23.606042ms
2023-03-15 18:19:54.161027000-07:00 execution halted for 30.225125ms
2023-03-15 18:22:57.280119000-07:00 execution halted for 35.5085ms
2023-03-15 19:02:02.008388000-07:00 execution halted for 36.372042ms
2023-03-15 19:02:03.235848000-07:00 execution halted for 113.232833ms
2023-03-15 19:02:04.469875000-07:00 execution halted for 167.6745ms

macOS 13.2.1 Darwin xnu M1: 74 ms

gtimeout 0.0.1 2023-03-15 17:22:50-07:00 c70:darwin-arm64
© 2023–present Harald Rudell  (https://pkg.go.dev/github.com/haraldrudell/parl#section-readme)
^C to exit
2023-03-15 17:22:50.448680000-07:00 execution halted for 1.225625ms
2023-03-15 17:22:50.871659000-07:00 execution halted for 1.246291ms
2023-03-15 17:22:51.057651000-07:00 execution halted for 1.248625ms
2023-03-15 17:22:51.349832000-07:00 execution halted for 1.445459ms
2023-03-15 17:22:52.355827000-07:00 execution halted for 1.982709ms
2023-03-15 17:22:52.487821000-07:00 execution halted for 2.574834ms
2023-03-15 17:22:54.350799000-07:00 execution halted for 2.954333ms
2023-03-15 17:22:58.929732000-07:00 execution halted for 3.174083ms
2023-03-15 17:23:02.696671000-07:00 execution halted for 9.068209ms
2023-03-15 17:35:08.635991000-07:00 execution halted for 9.198125ms
2023-03-15 17:53:45.980157000-07:00 execution halted for 10.31725ms
2023-03-15 17:53:46.289164000-07:00 execution halted for 13.028875ms
2023-03-15 17:57:30.714047000-07:00 execution halted for 39.321292ms
2023-03-15 19:14:25.050705000-07:00 execution halted for 41.981583ms
2023-03-15 22:34:22.522072000-07:00 execution halted for 73.641042ms

© 2023–present Harald Rudell <harald.rudell@gmail.com> (https://haraldrudell.github.io/haraldrudell/)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL