Skip to content

Commit 1c0de35

Browse files
authored
Merge pull request #2027 from geremyCohen/go_sweet_bench
Go/Sweet benchmarks
2 parents e32e5d5 + 71d971c commit 1c0de35

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+2428
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Go Benchmarks with Sweet and Benchstat
3+
4+
minutes_to_complete: 60
5+
6+
who_is_this_for: This learning path is for developers who are interested in measuring the performance of Go-based applications on their servers.
7+
8+
learning_objectives:
9+
- Bring up two instances of GCP VMs
10+
- Install Go, benchmarks, benchstat, and sweet on the two VMs
11+
- Using sweet and benchstat, compare performance of Go applications on the two VMs
12+
13+
prerequisites:
14+
- A [Google Cloud account](https://console.cloud.google.com/). This learning path can be run on-prem or on any cloud provider, but specifically documents the process on GCP's Google Axion platform.
15+
- A local machine with [Google Cloud CLI](/install-guides/gcloud/) installed.
16+
17+
author: Geremy Cohen
18+
19+
### Tags
20+
skilllevels: Introductory
21+
subjects: Performance and Architecture
22+
armips:
23+
- Neoverse
24+
tools_software_languages:
25+
26+
operatingsystems:
27+
- Linux
28+
29+
30+
31+
### FIXED, DO NOT MODIFY
32+
# ================================================================================
33+
weight: 1 # _index.md always has weight of 1 to order correctly
34+
layout: "learningpathall" # All files under learning paths have this same wrapper
35+
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content.
36+
---
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# ================================================================================
3+
# FIXED, DO NOT MODIFY THIS FILE
4+
# ================================================================================
5+
weight: 999 # Set to always be larger than the content in this path to be at the end of the navigation.
6+
title: "Next Steps" # Always the same, html page title.
7+
layout: "learningpathall" # All files under learning paths have this same wrapper for Hugo processing.
8+
---
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: Launching an Intel C4 Instance
3+
weight: 30
4+
5+
### FIXED, DO NOT MODIFY
6+
layout: learningpathall
7+
---
8+
9+
## Section Overview
10+
In this section, you will set up the second benchmarking system, an Intel-based c4-standard-8 instance.
11+
12+
## Creating the Instance
13+
14+
To create the second system, follow the previous lesson's c4a install instructions, but make the following changes:
15+
16+
1. **Name your instance:** For the `Name` field, enter "c4".
17+
18+
2. **Select machine series:** Scroll down to the Machine series section, and select the C4 radio button.
19+
20+
![](images/launch_c4/3.png)
21+
22+
3. **View machine types:** Scroll down to the Machine type dropdown, and click it to show all available options.
23+
24+
![](images/launch_c4/4.png)
25+
26+
4. **Choose machine size:** Select "c4-standard-8" under the Standard tab.
27+
28+
![](images/launch_c4/5.png)
29+
30+
After the c4 instance starts up, you are ready to continue to the next section, where you'll install the benchmarking software.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: Launching an Arm Axion C4a Instance
3+
weight: 20
4+
5+
### FIXED, DO NOT MODIFY
6+
layout: learningpathall
7+
---
8+
9+
## Section Overview
10+
In this section, you'll learn how to spin up the first of two different systems used in our benchmarking tests, an Arm-based Google Axion c4a-standard-4 (c4a for short).
11+
12+
## Creating the c4a-standard-4 Instance
13+
14+
1. **Access Google Cloud Console:** Navigate to [https://console.cloud.google.com/welcome](https://console.cloud.google.com/welcome)
15+
16+
2. **Search for VM instances:** Click into the Search field.
17+
18+
3. **Find VM Instances:** Start typing `vm` until the UI auto-completes `VM Instances`, then click it.
19+
20+
![](images/launch_c4a/3.png)
21+
22+
The VM Instances page appears.
23+
24+
4. **Create a new instance:** Click `Create instance`
25+
26+
![](images/launch_c4a/4.png)
27+
28+
The Machine configuration page appears.
29+
30+
5. **Name your instance:** Click the `Name` field, and enter "c4a" for the `Name`.
31+
32+
![](images/launch_c4a/5.png)
33+
34+
6. **Select machine series:** Scroll down to the Machine series section, and select the C4A radio button.
35+
36+
![](images/launch_c4a/7.png)
37+
38+
7. **View machine types:** Scroll down to the Machine type dropdown, and click it to show all available options.
39+
40+
![](images/launch_c4a/8.png)
41+
42+
8. **Choose machine size:** Select "c4a-standard-4" under the Standard tab.
43+
44+
![](images/launch_c4a/9.png)
45+
46+
9. **Configure storage:** Click the "OS and Storage" tab.
47+
48+
![](images/launch_c4a/10.png)
49+
50+
10. **Modify storage settings:** Click "Change"
51+
52+
![](images/launch_c4a/11.png)
53+
54+
11. **Set disk size:** Double-click the "Size (GB)" field, then enter "1000" for the value.
55+
56+
![](images/launch_c4a/16.png)
57+
58+
12. **Confirm storage settings:** Click "Select" to continue.
59+
60+
![](images/launch_c4a/18.png)
61+
62+
13. **Launch the instance:** Click "Create" to bring up the instance.
63+
64+
![](images/launch_c4a/19.png)
65+
66+
After a few seconds, your c4a instance starts up, and you are ready to continue to the next section. In the next step, you will launch the second system, an Intel-based Emerald Rapids c4-standard-8 (c4 for short), which will serve as the comparison system for our benchmarking tests.
67+
137 KB
Loading
107 KB
Loading
251 KB
Loading
261 KB
Loading
196 KB
Loading
197 KB
Loading

0 commit comments

Comments
 (0)