mirror of
https://github.com/godotengine/godot-benchmarks.git
synced 2026-09-03 18:14:28 +03:00
Run benchmarks for Intel IGP on server (#67)
This uses Vulkan device selection.
This commit is contained in:
@@ -109,19 +109,19 @@ DATE="$(date +'%Y-%m-%d')"
|
||||
|
||||
# Perform a warmup run first.
|
||||
echo "Performing debug warmup run."
|
||||
$GODOT_DEBUG --audio-driver Dummy --path "$GODOT_EMPTY_PROJECT_DIR" --quit || true
|
||||
$GODOT_DEBUG --audio-driver Dummy --gpu-index 1 --path "$GODOT_EMPTY_PROJECT_DIR" --quit || true
|
||||
TOTAL=0
|
||||
for _ in {0..19}; do
|
||||
BEGIN="$(date +%s%3N)"
|
||||
echo "Performing benchmark debug startup/shutdown run."
|
||||
$GODOT_DEBUG --audio-driver Dummy --path "$GODOT_EMPTY_PROJECT_DIR" --quit || true
|
||||
$GODOT_DEBUG --audio-driver Dummy --gpu-index 1 --path "$GODOT_EMPTY_PROJECT_DIR" --quit || true
|
||||
END="$(date +%s%3N)"
|
||||
TOTAL="$((TOTAL + END - BEGIN))"
|
||||
done
|
||||
TIME_TO_STARTUP_SHUTDOWN_DEBUG="$((TOTAL / 20))"
|
||||
|
||||
echo "Performing benchmark debug peak memory usage run."
|
||||
PEAK_MEMORY_STARTUP_SHUTDOWN_DEBUG=$(/usr/bin/time -f "%M" "$GODOT_DEBUG" --audio-driver Dummy --path "$GODOT_EMPTY_PROJECT_DIR" --quit 2>&1 | tail -1)
|
||||
PEAK_MEMORY_STARTUP_SHUTDOWN_DEBUG=$(/usr/bin/time -f "%M" "$GODOT_DEBUG" --audio-driver Dummy --gpu-index 1 --path "$GODOT_EMPTY_PROJECT_DIR" --quit 2>&1 | tail -1)
|
||||
|
||||
# Perform a warmup run first.
|
||||
echo "Performing release warmup run."
|
||||
@@ -137,24 +137,24 @@ done
|
||||
TIME_TO_STARTUP_SHUTDOWN_RELEASE="$((TOTAL / 20))"
|
||||
|
||||
echo "Performing benchmark release peak memory usage run."
|
||||
PEAK_MEMORY_STARTUP_SHUTDOWN_RELEASE=$(/usr/bin/time -f "%M" "$GODOT_RELEASE" --audio-driver Dummy --path "$GODOT_EMPTY_PROJECT_DIR" --quit 2>&1 | tail -1)
|
||||
PEAK_MEMORY_STARTUP_SHUTDOWN_RELEASE=$(/usr/bin/time -f "%M" "$GODOT_RELEASE" --audio-driver Dummy --gpu-index 1 --path "$GODOT_EMPTY_PROJECT_DIR" --quit 2>&1 | tail -1)
|
||||
|
||||
# Import resources and build C# solutions in the project (required to run it).
|
||||
echo "Performing resource importing and C# solution building."
|
||||
$GODOT_DEBUG --headless --editor --build-solutions --quit-after 2
|
||||
$GODOT_DEBUG --headless --editor --gpu-index 1 --build-solutions --quit-after 2
|
||||
|
||||
# Run CPU benchmarks.
|
||||
|
||||
echo "Running CPU benchmarks."
|
||||
$GODOT_DEBUG --audio-driver Dummy -- --run-benchmarks --exclude-benchmarks="rendering/*" --save-json="/tmp/cpu_debug.md" --json-results-prefix="cpu_debug"
|
||||
$GODOT_RELEASE --audio-driver Dummy -- --run-benchmarks --exclude-benchmarks="rendering/*" --save-json="/tmp/cpu_release.md" --json-results-prefix="cpu_release"
|
||||
$GODOT_DEBUG --audio-driver Dummy --gpu-index 1 -- --run-benchmarks --exclude-benchmarks="rendering/*" --save-json="/tmp/cpu_debug.md" --json-results-prefix="cpu_debug"
|
||||
$GODOT_RELEASE --audio-driver Dummy --gpu-index 1 -- --run-benchmarks --exclude-benchmarks="rendering/*" --save-json="/tmp/cpu_release.md" --json-results-prefix="cpu_release"
|
||||
|
||||
# Run GPU benchmarks.
|
||||
# TODO: Run on different GPUs.
|
||||
# TODO: Run on NVIDIA GPU.
|
||||
echo "Running GPU benchmarks."
|
||||
$GODOT_RELEASE --audio-driver Dummy -- --run-benchmarks --include-benchmarks="rendering/*" --save-json="/tmp/amd.md" --json-results-prefix="amd"
|
||||
#$GODOT_RELEASE --audio-driver Dummy -- --run-benchmarks --include-benchmarks="rendering/*" --save-json="/tmp/intel.md" --json-results-prefix="intel"
|
||||
#$GODOT_RELEASE --audio-driver Dummy -- --run-benchmarks --include-benchmarks="rendering/*" --save-json="/tmp/nvidia.md" --json-results-prefix="nvidia"
|
||||
$GODOT_RELEASE --audio-driver Dummy --gpu-index 1 -- --run-benchmarks --include-benchmarks="rendering/*" --save-json="/tmp/amd.md" --json-results-prefix="amd"
|
||||
$GODOT_RELEASE --audio-driver Dummy --gpu-index 0 -- --run-benchmarks --include-benchmarks="rendering/*" --save-json="/tmp/intel.md" --json-results-prefix="intel"
|
||||
#$GODOT_RELEASE --audio-driver Dummy --gpu-index 2 -- --run-benchmarks --include-benchmarks="rendering/*" --save-json="/tmp/nvidia.md" --json-results-prefix="nvidia"
|
||||
|
||||
rm -rf /tmp/godot-benchmarks-results/
|
||||
# Clone a copy of the repository so we can push the new JSON files to it.
|
||||
@@ -167,8 +167,8 @@ cd /tmp/godot-benchmarks-results/
|
||||
# Merge benchmark run JSONs together.
|
||||
# Use editor build as release build errors due to missing PCK file.
|
||||
echo "Merging JSON files together."
|
||||
$GODOT_DEBUG --path "$DIR" --script merge_json.gd -- /tmp/cpu_debug.md /tmp/cpu_release.md /tmp/amd.md --output-path /tmp/merged.md
|
||||
#$GODOT_DEBUG --path "$DIR" --script merge_json.gd -- /tmp/cpu_debug.md /tmp/cpu_release.md /tmp/amd.md /tmp/intel.md /tmp/nvidia.md --output-path /tmp/merged.md
|
||||
$GODOT_DEBUG --headless --path "$DIR" --script merge_json.gd -- /tmp/cpu_debug.md /tmp/cpu_release.md /tmp/amd.md /tmp/intel.md --output-path /tmp/merged.md
|
||||
#$GODOT_DEBUG --headless --path "$DIR" --script merge_json.gd -- /tmp/cpu_debug.md /tmp/cpu_release.md /tmp/amd.md /tmp/intel.md /tmp/nvidia.md --output-path /tmp/merged.md
|
||||
|
||||
OUTPUT_PATH="/tmp/godot-benchmarks-results/${DATE}_${COMMIT_HASH}.md"
|
||||
rm -f "$OUTPUT_PATH"
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<tr>
|
||||
<td>GPUs</td>
|
||||
<td>
|
||||
🔴 AMD Radeon RX 550
|
||||
🔵 Intel UHD Graphics 730 – 🔴 AMD Radeon RX 550
|
||||
<!-- 🔵 Intel UHD Graphics 730 – 🔴 AMD Radeon RX 550 – 🟢 NVIDIA GeForce GT 1030 -->
|
||||
</td>
|
||||
</tr>
|
||||
@@ -171,14 +171,14 @@
|
||||
</td>
|
||||
<td>
|
||||
{{ if gt .results.amd.render_cpu 0 }}
|
||||
<!-- <span title="Intel HD Graphics">🔵</span> {{ .results.intel.render_cpu }} <sub>mspf</sub><br> -->
|
||||
<span title="Intel HD Graphics">🔵</span> {{ .results.intel.render_cpu }} <sub>mspf</sub><br>
|
||||
<span title="AMD Radeon RX 550">🔴</span> {{ .results.amd.render_cpu }} <sub>mspf</sub><!-- -->
|
||||
<!-- span title="NVIDIA GeForce GT 1030">🟢</span> {{ .results.nvidia.render_cpu }} <sub>mspf</sub> -->
|
||||
{{ end }}
|
||||
</td>
|
||||
<td>
|
||||
{{ if gt .results.amd.render_gpu 0 }}
|
||||
<!-- <span title="Intel HD Graphics">🔵</span> {{ .results.intel.render_gpu }} <sub>mspf</sub><br> -->
|
||||
<span title="Intel HD Graphics">🔵</span> {{ .results.intel.render_gpu }} <sub>mspf</sub><br>
|
||||
<span title="AMD Radeon RX 550">🔴</span> {{ .results.amd.render_gpu }} <sub>mspf</sub><!-- -->
|
||||
<!-- <span title="NVIDIA GeForce GT 1030">🟢</span> {{ .results.nvidia.render_gpu }} <sub>mspf</sub> -->
|
||||
{{ end }}
|
||||
|
||||
@@ -58,14 +58,12 @@
|
||||
<td>SSD</td>
|
||||
<td>Samsung 980 500 GB (M.2)</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td>GPU 1 (integrated)</td>
|
||||
<td>🔵 Intel UHD Graphics 730</td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td>GPU (dedicated)</td>
|
||||
<td>GPU 2 (dedicated)</td>
|
||||
<td>🔴 AMD Radeon RX 550</td>
|
||||
</tr>
|
||||
<!--
|
||||
|
||||
Reference in New Issue
Block a user