Skip to content

Commit 4b79583

Browse files
Refactor documentation: standardize section headings for consistency in benchmarking and installation guides
1 parent f12d410 commit 4b79583

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

content/learning-paths/servers-and-cloud-computing/typescript-on-gcp/benchmarking.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ tsc benchmark_jmh.ts
6565
This command converts your TypeScript file into JavaScript and creates a new file called `benchmark_jmh.js` in your project directory.
6666
You can now run this JavaScript file with Node.js to benchmark performance on your Google Cloud C4A (Arm64) VM.
6767

68-
## Run the Benchmark
68+
## Run the benchmark
6969
Now, execute the compiled JavaScript file with Node.js:
7070

7171
```console
@@ -87,13 +87,13 @@ Iteration 10: 0.673 ms
8787
8888
Average execution time over 10 iterations: 0.888 ms
8989
```
90-
## Interpret your TypeScript performance data on Arm
90+
## Interpret your TypeScript performance data
9191

9292
Each iteration measures how long it takes to run the benchmarked function once, while the average execution time is calculated by dividing the total time for all runs by the number of iterations. Running the benchmark multiple times helps smooth out fluctuations caused by factors like CPU scheduling, garbage collection, or memory caching. This approach produces more consistent and meaningful performance data, similar to the methodology used by Java’s JMH benchmarking framework.
9393

9494
The average execution time reflects how efficiently the function executes under steady-state conditions. The first iteration often shows higher latency because Node.js performing initial JIT (Just-In-Time) compilation and optimization, a common warm-up behavior in JavaScript/TypeScript benchmarks.
9595

96-
### Benchmark summary on Arm64
96+
## Benchmark summary
9797
Results from the earlier run on the `c4a-standard-4` (4 vCPU, 16 GB memory) Arm64 VM in GCP (SUSE):
9898

9999
| Iteration | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Average |

content/learning-paths/servers-and-cloud-computing/typescript-on-gcp/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The `-g` flag installs packages globally, making tsc and ts-node available syste
4343

4444
This approach simplifies workflows for developers running multiple TypeScript projects on the same VM.
4545

46-
## Verify installations
46+
## Verify installation
4747
Check that Node.js, npm, TypeScript, and ts-node are all installed correctly:
4848

4949
```console

0 commit comments

Comments
 (0)