k1LoW / runn

runn is a package/tool for running operations following a scenario.
https://runn.run
MIT License
425 stars 31 forks source link

Improve implementation of the built-in function `select`. #958

Closed k1LoW closed 3 months ago

k1LoW commented 3 months ago

SSIA.

github-actions[bot] commented 3 months ago

BenchmarkManyRunbooks-4

main (-) #958 (0c6e0eb) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 3,988,900,373 ns/op 3,771,244,188 ns/op -217,656,185 ns/op
Bytes allocated per iteration 1,793,369,872 B/op 1,793,504,680 B/op 134,808 B/op
Allocs per iteration 21,414,082 allocs/op 21,414,444 allocs/op 362 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#958](https://github.com/k1LoW/runn/pull/958) ([0c6e0eb](https://github.com/k1LoW/runn/commit/0c6e0ebfa71d7f8a2e2e60c261aa0128629949ce)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **goos** | linux | linux | | **goarch** | amd64 | amd64 | | **pkg** | github.com/k1LoW/runn | github.com/k1LoW/runn | | **cpu** | AMD EPYC 7763 64-Core Processor | AMD EPYC 7763 64-Core Processor |

BenchmarkOpenAPI3-4

main (-) #958 (0c6e0eb) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 5,234,071,294 ns/op 5,120,174,270 ns/op -113,897,024 ns/op
Bytes allocated per iteration 2,952,728,296 B/op 2,952,399,384 B/op -328,912 B/op
Allocs per iteration 29,402,426 allocs/op 29,382,253 allocs/op -20,173 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#958](https://github.com/k1LoW/runn/pull/958) ([0c6e0eb](https://github.com/k1LoW/runn/commit/0c6e0ebfa71d7f8a2e2e60c261aa0128629949ce)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **goos** | linux | linux | | **goarch** | amd64 | amd64 | | **pkg** | github.com/k1LoW/runn | github.com/k1LoW/runn | | **cpu** | AMD EPYC 7763 64-Core Processor | AMD EPYC 7763 64-Core Processor |

BenchmarkSingleRunbook-4

main (-) #958 (0c6e0eb) +/-
Number of iterations 18 18 0
Nanoseconds per iteration 64,666,277 ns/op 64,670,903 ns/op 4,626 ns/op
Bytes allocated per iteration 60,309,831 B/op 60,325,735 B/op 15,904 B/op
Allocs per iteration 205,799 allocs/op 205,807 allocs/op 8 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#958](https://github.com/k1LoW/runn/pull/958) ([0c6e0eb](https://github.com/k1LoW/runn/commit/0c6e0ebfa71d7f8a2e2e60c261aa0128629949ce)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **goos** | linux | linux | | **goarch** | amd64 | amd64 | | **pkg** | github.com/k1LoW/runn | github.com/k1LoW/runn | | **cpu** | AMD EPYC 7763 64-Core Processor | AMD EPYC 7763 64-Core Processor |

Reported by octocov

github-actions[bot] commented 3 months ago

Code Metrics Report

main (9f9605c) #958 (0c6e0eb) +/-
Coverage 64.2% 64.1% -0.2%
Code to Test Ratio 1:0.4 1:0.4 -0.1
Test Execution Time 6m7s 5m18s -49s
Details ``` diff | | main (9f9605c) | #958 (0c6e0eb) | +/- | |---------------------|----------------|----------------|-------| - | Coverage | 64.2% | 64.1% | -0.2% | | Files | 76 | 76 | 0 | | Lines | 8441 | 8459 | +18 | - | Covered | 5427 | 5426 | -1 | - | Code to Test Ratio | 1:0.4 | 1:0.4 | -0.1 | | Code | 24021 | 24050 | +29 | | Test | 11470 | 11470 | 0 | + | Test Execution Time | 6m7s | 5m18s | -49s | ```

Code coverage of files in pull request scope (59.9% → 58.4%)

Files Coverage +/-
option.go 58.4% -1.6%

Reported by octocov

github-actions[bot] commented 3 months ago

BenchmarkManyRunbooks-4

main (-) #958 (0c70b45) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 3,969,949,343 ns/op 3,815,143,399 ns/op -154,805,944 ns/op
Bytes allocated per iteration 1,793,801,448 B/op 1,793,671,928 B/op -129,520 B/op
Allocs per iteration 21,415,246 allocs/op 21,414,603 allocs/op -643 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#958](https://github.com/k1LoW/runn/pull/958) ([0c70b45](https://github.com/k1LoW/runn/commit/0c70b45390519c7dce40f8476efa7a155f297fbd)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **goos** | linux | linux | | **goarch** | amd64 | amd64 | | **pkg** | github.com/k1LoW/runn | github.com/k1LoW/runn | | **cpu** | AMD EPYC 7763 64-Core Processor | AMD EPYC 7763 64-Core Processor |

BenchmarkOpenAPI3-4

main (-) #958 (0c70b45) +/-
Number of iterations 1 1 0
Nanoseconds per iteration 5,028,181,133 ns/op 5,136,110,026 ns/op 107,928,893 ns/op
Bytes allocated per iteration 2,952,435,904 B/op 2,952,500,464 B/op 64,560 B/op
Allocs per iteration 29,384,956 allocs/op 29,388,894 allocs/op 3,938 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#958](https://github.com/k1LoW/runn/pull/958) ([0c70b45](https://github.com/k1LoW/runn/commit/0c70b45390519c7dce40f8476efa7a155f297fbd)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **goos** | linux | linux | | **goarch** | amd64 | amd64 | | **pkg** | github.com/k1LoW/runn | github.com/k1LoW/runn | | **cpu** | AMD EPYC 7763 64-Core Processor | AMD EPYC 7763 64-Core Processor |

BenchmarkSingleRunbook-4

main (-) #958 (0c70b45) +/-
Number of iterations 16 19 3
Nanoseconds per iteration 70,347,490 ns/op 64,805,110 ns/op -5,542,380 ns/op
Bytes allocated per iteration 60,256,257 B/op 60,316,341 B/op 60,084 B/op
Allocs per iteration 205,756 allocs/op 205,796 allocs/op 40 allocs/op
Metadata | | [main](https://github.com/k1LoW/runn/tree/main) (-) | [#958](https://github.com/k1LoW/runn/pull/958) ([0c70b45](https://github.com/k1LoW/runn/commit/0c70b45390519c7dce40f8476efa7a155f297fbd)) | |------------|----------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------:| | **goos** | linux | linux | | **goarch** | amd64 | amd64 | | **pkg** | github.com/k1LoW/runn | github.com/k1LoW/runn | | **cpu** | AMD EPYC 7763 64-Core Processor | AMD EPYC 7763 64-Core Processor |

Reported by octocov

github-actions[bot] commented 3 months ago

Code Metrics Report

main (9f9605c) #958 (0c70b45) +/-
Coverage 64.2% 64.1% -0.2%
Code to Test Ratio 1:0.4 1:0.4 -0.1
Test Execution Time 6m7s 6m5s -2s
Details ``` diff | | main (9f9605c) | #958 (0c70b45) | +/- | |---------------------|----------------|----------------|-------| - | Coverage | 64.2% | 64.1% | -0.2% | | Files | 76 | 76 | 0 | | Lines | 8441 | 8459 | +18 | | Covered | 5427 | 5427 | 0 | - | Code to Test Ratio | 1:0.4 | 1:0.4 | -0.1 | | Code | 24021 | 24050 | +29 | | Test | 11470 | 11470 | 0 | + | Test Execution Time | 6m7s | 6m5s | -2s | ```

Code coverage of files in pull request scope (59.9% → 58.4%)

Files Coverage +/-
option.go 58.4% -1.6%

Reported by octocov