You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/go-benchmarking-with-sweet/manual_run_benchstat.md
+8-15Lines changed: 8 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,6 @@ weight: 52
6
6
layout: learningpathall
7
7
---
8
8
9
-
## Section Overview
10
-
11
9
You've successfully run and downloaded the benchmark results from both your Arm-based and x86-based VMs. In this section, you'll compare them to each other using the benchstat tool.
12
10
13
11
@@ -27,39 +25,36 @@ The file contains the results of the `markdown` benchmark run on the Arm-based c
27
25
28
26
To compare the results, you'll use `benchstat` to analyze the two result files you downloaded. Since all the prerequisites are already installed on the `c4` and `c4a` instances, benchstat will be run from one of those instances.
29
27
30
-
1.**Connect to VM:** As demonstrated in the previous chapter, SSH into the `c4a` instance.
31
28
32
-
2.**Create working directory:** Make a temporary benchstat directory to hold the results files, and cd into it:
29
+
1.**Create working directory:** Make a temporary benchstat directory to hold the results files on either the c4a or c4 isntance, and change directory into it:
33
30
34
31
```bash
35
32
mkdir benchstat_results
36
33
cd benchstat_results
37
34
```
38
35
39
-
3.**Upload result files:** Click the `UPLOAD FILE` button in the GCP console, and upload the `c4a.results` AND `c4.results` files you downloaded earlier. (This uploads them to your home directory, not to the current directory.)
36
+
2.**Upload result files:** Click the `UPLOAD FILE` button in the GCP console, and upload the `c4a.results` AND `c4.results` files you downloaded earlier. (This uploads them to your home directory, not to the current directory.)
40
37
41
38

42
39
43
-
4.**Verify upload:** You'll know it worked correctly via the confirmation dialog in your terminal:
40
+
3.**Verify upload:** You'll know it worked correctly via the confirmation dialog in your terminal:
44
41
45
42

46
43
47
-
5.**Move files to working directory:** Move the results files to the `benchstat_results` directory, and confirm their presence:
44
+
4.**Move files to working directory:** Move the results files to the `benchstat_results` directory, and confirm their presence:
48
45
49
46
```bash
50
47
mv ~/c4a.results ~/c4.results .
51
48
ls -al
52
49
```
53
50
54
-
You should see both files in the benchstat_results directory:
51
+
You should see both files in the `benchstat_results` directory:
55
52
56
53
```bash
57
-
# Example output:
58
-
c4a-48:~/benchstat_results$ ls
59
54
c4.results c4a.results
60
55
```
61
56
62
-
6.**Run benchstat:** Now you can run `benchstat` to compare the two results files:
57
+
5.**Run benchstat:** Now you can run `benchstat` to compare the two results files:
63
58
64
59
```bash
65
60
export GOPATH=$HOME/go
@@ -68,7 +63,7 @@ To compare the results, you'll use `benchstat` to analyze the two result files y
68
63
benchstat c4a.results c4.results > c4a_vs_c4.txt
69
64
```
70
65
71
-
7.**View comparison results:** Run the `cat` command to view the results:
66
+
6.**View comparison results:** Run the `cat` command to view the results:
72
67
73
68
```bash
74
69
cat c4a_vs_c4.txt
@@ -77,8 +72,6 @@ To compare the results, you'll use `benchstat` to analyze the two result files y
@@ -125,4 +118,4 @@ To compare the results, you'll use `benchstat` to analyze the two result files y
125
118
126
119
At this point, you can download the `c4a_vs_c4.txt` for further analysis or reporting. You can also run the same or different benchmarks with the same, or different combinations of VMs, and continue comparing results using `benchstat`.
127
120
128
-
Continuing on to the next section, you will learn how to automate and gain enhanced visuals with sweet and benchstat.
121
+
In the next section, you will learn how to automate and gain enhanced visuals with sweet and benchstat.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/go-benchmarking-with-sweet/refactor1/rexec_sweet/__init__.py
0 commit comments