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/rust-on-gcp/_index.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
---
2
2
title: Deploy Rust on Google Cloud C4A (Arm-based Axion VMs)
3
3
4
+
draft: true
5
+
cascade:
6
+
draft: true
7
+
4
8
minutes_to_complete: 30
5
9
6
10
who_is_this_for: This learning path is intended for software developers deploying and optimizing Rust workloads on Linux/Arm64 environments, specifically using Google Cloud C4A virtual machines powered by Axion processors.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/rust-on-gcp/benchmarking.md
+10-13Lines changed: 10 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,12 @@ rustc --version
18
18
cargo --version
19
19
```
20
20
21
+
You should see an output similar to:
22
+
```output
23
+
rustc 1.91.0 (f8297e351 2025-10-28)
24
+
cargo 1.91.0 (ea2d97820 2025-10-10)
25
+
```
26
+
21
27
### Create a New Rust Project
22
28
Create a new Rust project for benchmarking:
23
29
@@ -26,7 +32,7 @@ cargo new rust-benchmark
26
32
cd rust-benchmark
27
33
```
28
34
### Add Criterion Benchmarking Dependency
29
-
**Criterion** is the officially recommended benchmarking crate for Rust. Add it to your project by editing the `Cargo.toml` file located inside your project root directory (for example, rust-benchmark/Cargo.toml):
35
+
**Criterion** is the officially recommended benchmarking crate for Rust. Add it to your project by editing the `Cargo.toml` file located inside your project root directory using your favorite editor (location example: rust-benchmark/Cargo.toml). Replace your "[dependencies]" tag within your file with this content, then save the file:
30
36
31
37
```toml
32
38
[dependencies]
@@ -39,11 +45,11 @@ harness = false
39
45
This enables Criterion for high-precision benchmarking.
40
46
41
47
### Create the Benchmark File
42
-
Create a new benchmark file inside the `benches/` directory:
48
+
Create a new benchmark file inside the `benches/` directory using your favorite editor ("edit" used in the example below):
43
49
44
50
```console
45
51
mkdir benches
46
-
vi benches/my_benchmark.rs
52
+
edit benches/my_benchmark.rs
47
53
```
48
54
Benchmark files in this directory are automatically detected by Cargo.
49
55
@@ -96,22 +102,13 @@ Found 1 outliers among 100 measurements (1.00%)
96
102
-**Plotting Backend:** Used `plotters` since Gnuplot was not found.
97
103
- The results show **consistent performance** with only slight variation across 100 measurements.
98
104
99
-
### Benchmark summary on x86_64
100
-
To compare the benchmark results, the following results were collected by running the same benchmark on a `x86 - c4-standard-4` (4 vCPUs, 15 GB Memory) x86_64 VM in GCP, running SUSE:
101
-
102
-
|**Benchmark**|**Average Time (µs)**|**Min (µs)**|**Max (µs)**|**Outliers (%)**|**Remarks**|
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/rust-on-gcp/instance.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,18 @@ To create a virtual machine based on the C4A instance type:
26
26
27
27

28
28
29
-
- Under **OS and Storage**, select **Change**, then choose an Arm64-based OS image. For this Learning Path, use **SUSE Linux Enterprise Server**. Pick the preferred version for your Operating System. Ensure you select the **Arm image** variant. Click **Select**.
29
+
30
+
- Under **OS and Storage**, select **Change**, then choose an Arm64-based OS image. For this Learning Path, use **SUSE Linux Enterprise Server**.
31
+
- If using use **SUSE Linux Enterprise Server**. Select "Pay As You Go" for the license type.
32
+
- Once appropriately selected, please Click **Select**.
30
33
- Under **Networking**, enable **Allow HTTP traffic**.
31
34
- Click **Create** to launch the instance.
35
+
- Once created, you should see a "SSH" option to the right in your list of VM instances. Click on this to launch a SSH shell into your VM instance:
36
+
37
+

38
+
39
+
- A window from your browser should come up and you should now see a shell into your VM instance:
40
+
41
+

0 commit comments