@@ -81,6 +81,42 @@ When your workflow runs, GitHub Actions will start a container using the specifi
8181- [Running Jobs in a Container](https://docs.github.com/en/actions/using-jobs/running-jobs-in-a-container)
8282
8383
84+ ### Benchmarks based on the examples within this repo
85+ > #### CodeQL code scanning for containerized applications using [GitHub Default Runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners)
86+
87+ | Example | Programming Language| Scan completion Time |
88+ |---------------------|-------------------- |---------------------------------- |
89+ |Example01_JavaScript | JavaScript | 4 Minutes and 49 Seconds |
90+ |Example01_Java | Java | 2 Minutes and 34 seconds |
91+ |Example01_C# | C# | 7 Minutes and 47 Seconds |
92+ |Example01_Python | Python | 4 Minutes and 39 Seconds |
93+
94+ > #### CodeQL code scanning for containerized applications using [GitHub Larger Runners]([https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners](https://docs.github.com/en/enterprise-cloud@latest/actions/using-github-hosted-runners/about-larger-runners))
95+
96+ | Example | Programming Language| Scan completion Time |
97+ |---------------------|-------------------- |---------------------- |
98+ |Example01_JavaScript | JavaScript | 3 Minutes 49 Seconds |
99+ |Example01_Java | Java | 1 Minute 58 Seconds |
100+ |Example01_C# | C# | 3 Minutes and 59 Seconds |
101+ |Example01_Python | Python | 2 Minutes and 24 Seconds |
102+
103+ ##### Larger Runner Specs and Resources Assigned to the container for each example:
104+ | CPU Cores | RAM | Storage | Base OS | | CPU | RAM | Storage | Base OS |
105+ |-----------|-----|---------|--------- |---|-----|------------------|-----------------|------------------------------------------- |
106+ |8 cores |32GB |300 SSD |Ubuntu 22.04| | 5 |Container Default|Container Default|Review example workflows for container image |
107+
108+
109+ > #### CodeQL code scanning for containerized applications - Coverting the application to run natively within a GitHub default Runner rather than within the container.
110+
111+ | Example | Programming Language| Scan completion Time |
112+ |---------------------|-------------------- |---------------------- |
113+ |Example01_JavaScript | JavaScript | 5 Minutes and 10 Seconds |
114+ |Example01_Java | Java | 2 Minutes and 04 seconds |
115+ |Example01_C# | C# | 7 Minutes and 47 Seconds |
116+ |Example01_Python | Python | 4 Minutes and 39 Seconds |
117+
118+
119+
84120### Considerations when using CodeQL to scan containerized applications
85121Running a GitHub Action in a container can have both positive and negative performance impacts compared to running the action on the base runner.
86122
0 commit comments