mirror of
https://github.com/godotengine/godot-benchmarks.git
synced 2025-12-31 09:49:13 +03:00
222 lines
6.8 KiB
HTML
222 lines
6.8 KiB
HTML
{{ define "main" }}
|
||
|
||
{{ $date := index (split (path.BaseName .Permalink) "_") 0 }}
|
||
{{ $commit := index (split (path.BaseName .Permalink) "_") 1 }}
|
||
|
||
{{ $benchmark := where .Site.Data.data.benchmarks "commit" "eq" $commit }}
|
||
{{ $benchmark := where $benchmark "date" "eq" $date }}
|
||
{{ $benchmark := index $benchmark 0 }}
|
||
|
||
<h1>{{ index (split (path.BaseName .Permalink) "_") 0 }}
|
||
<a href="https://github.com/godotengine/godot/commit/{{ $benchmark.engine.version_hash }}"><code>{{ slicestr $benchmark.engine.version_hash 0 9 }}</code></a>
|
||
</h1>
|
||
|
||
<div style="display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 10px;">
|
||
{{/* Order is inverted for this site. */}}
|
||
<div>
|
||
{{with .Site.RegularPages.Next . }}
|
||
<a href="{{ .RelPermalink }}">« Previous: {{ index (split (path.BaseName .Permalink) "_") 0 }}
|
||
<code>{{ slicestr $benchmark.engine.version_hash 0 9 }}</code>
|
||
</a>
|
||
{{end}}
|
||
|
||
</div>
|
||
<div style="text-align: right">
|
||
{{with .Site.RegularPages.Prev . }}
|
||
<a href="{{ .RelPermalink }}">Next: {{ index (split (path.BaseName .Permalink) "_") 0 }}
|
||
<code>{{ slicestr $benchmark.engine.version_hash 0 9 }}</code> »
|
||
</a>
|
||
{{end}}
|
||
</div>
|
||
</div>
|
||
|
||
<h2>System information</h2>
|
||
<table class="table-first-column-align-right">
|
||
<tr>
|
||
<td>CPU</td>
|
||
<td>Intel Core i5-12400</td>
|
||
</tr>
|
||
<tr>
|
||
<td>GPUs</td>
|
||
<td>
|
||
🔵 Intel UHD Graphics 730 – 🔴 AMD Radeon RX 550 – 🟢 NVIDIA GeForce GT 1030
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Operating system</td>
|
||
<td>Fedora 40 64-bit</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<h2>Benchmark results</h2>
|
||
<em>For all values, lower is better.</em>
|
||
<details open>
|
||
<summary><strong>CPU</strong></summary>
|
||
<table class="table-first-column-align-right">
|
||
<thead>
|
||
<tr>
|
||
<td>Name</td>
|
||
<td>Idle</td>
|
||
<td>Physics</td>
|
||
<td><abbr title="Time spent setting up the scene or executing the script">Main Thread Time</abbr></td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{{/* Check CPU debug data only, but also get data from release CPU runs. */}}
|
||
{{/* These runs are expected to have the same number of results available. */}}
|
||
{{ range $benchmark.benchmarks }}
|
||
{{ if gt .results.cpu_debug.time 0 }}
|
||
<tr>
|
||
<td>
|
||
<sub style="opacity: 0.65">
|
||
{{ delimit (first (sub (len .path) 1) .path) " > "}}
|
||
</sub>
|
||
<br>
|
||
<strong>{{ index (last 1 .path) 0 }}</strong>
|
||
</td>
|
||
<td>
|
||
{{ if gt .results.cpu_debug.idle 0 }}
|
||
<span style="opacity: 0.65"><sub>Debug</sub> {{ .results.cpu_debug.idle }} <sub>mspf</sub><br></span>
|
||
<sub>Release</sub> {{ .results.cpu_release.idle }} <sub>mspf</sub>
|
||
{{ end }}
|
||
</td>
|
||
<td>
|
||
{{ if gt .results.cpu_debug.physics 0 }}
|
||
<span style="opacity: 0.65"><sub>Debug</sub> {{ .results.cpu_debug.physics }} <sub>mspf</sub><br></span>
|
||
<sub>Release</sub> {{ .results.cpu_release.physics }} <sub>mspf</sub>
|
||
{{ end }}
|
||
</td>
|
||
<td>
|
||
{{ if gt .results.cpu_debug.time 0 }}
|
||
<span style="opacity: 0.65"><sub>Debug</sub> {{ .results.cpu_debug.time }} <sub>ms</sub><br></span>
|
||
<sub>Release</sub> {{ .results.cpu_release.time }} <sub>ms</sub>
|
||
{{ end }}
|
||
</td>
|
||
</tr>
|
||
{{ end }}
|
||
{{ end }}
|
||
</tbody>
|
||
</table>
|
||
</details>
|
||
|
||
<details open>
|
||
<summary><strong>GPU</strong></summary>
|
||
<table class="table-first-column-align-right">
|
||
<thead>
|
||
<tr>
|
||
<td>Name</td>
|
||
<td>Render CPU</td>
|
||
<td>Render GPU</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{{/* Check GPU AMD data only, but also get data from Intel and NVIDIA GPU runs. */}}
|
||
{{/* These runs are expected to have the same number of results available. */}}
|
||
{{ range $benchmark.benchmarks }}
|
||
{{ if gt .results.amd.render_cpu 0 }}
|
||
<tr>
|
||
<td>
|
||
<sub style="opacity: 0.65">
|
||
{{ delimit (first (sub (len .path) 1) .path) " > "}}
|
||
</sub>
|
||
<br>
|
||
<strong>{{ index (last 1 .path) 0 }}</strong></td>
|
||
</td>
|
||
<td>
|
||
{{ if gt .results.amd.render_cpu 0 }}
|
||
|
||
{{ if gt .results.intel.render_cpu 0 }}
|
||
<span title="Intel HD Graphics">🔵</span> {{ .results.intel.render_cpu }} <sub>mspf</sub><br>
|
||
{{ end }}
|
||
<span title="AMD Radeon RX 550">🔴</span> {{ .results.amd.render_cpu }} <sub>mspf</sub>
|
||
{{ if gt .results.nvidia.render_cpu 0 }}
|
||
<br><span title="NVIDIA GeForce GT 1030">🟢</span> {{ .results.nvidia.render_cpu }} <sub>mspf</sub>
|
||
{{ end }}
|
||
|
||
{{ end }}
|
||
</td>
|
||
<td>
|
||
{{ if gt .results.amd.render_gpu 0 }}
|
||
|
||
{{ if gt .results.intel.render_gpu 0 }}
|
||
<span title="Intel HD Graphics">🔵</span> {{ .results.intel.render_gpu }} <sub>mspf</sub><br>
|
||
{{ end }}
|
||
<span title="AMD Radeon RX 550">🔴</span> {{ .results.amd.render_gpu }} <sub>mspf</sub>
|
||
{{ if gt .results.nvidia.render_gpu 0 }}
|
||
<br><span title="NVIDIA GeForce GT 1030">🟢</span> {{ .results.nvidia.render_gpu }} <sub>mspf</sub>
|
||
{{ end }}
|
||
|
||
{{ end }}
|
||
</td>
|
||
</tr>
|
||
{{ end }}
|
||
{{ end }}
|
||
</tbody>
|
||
</table>
|
||
</details>
|
||
|
||
<details open>
|
||
<summary><strong>RAM</strong></summary>
|
||
<table class="table-first-column-align-right">
|
||
<thead>
|
||
<tr>
|
||
<td>Name</td>
|
||
<td>RAM</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{{ range $benchmark.benchmarks }}
|
||
{{ if gt .results.cpu_debug.ram_bytes 0 }}
|
||
<tr>
|
||
<td>
|
||
<sub style="opacity: 0.65">
|
||
{{ delimit (first (sub (len .path) 1) .path) " > "}}
|
||
</sub>
|
||
<br>
|
||
<strong>{{ index (last 1 .path) 0 }}</strong>
|
||
</td>
|
||
<td>
|
||
<span style="opacity: 0.65"><sub>Debug</sub> {{ .results.cpu_debug.ram_bytes }} <sub>b</sub><br></span>
|
||
<sub>Release</sub> {{ .results.cpu_release.ram_bytes }} <sub>b</sub>
|
||
</td>
|
||
</tr>
|
||
{{ end }}
|
||
{{ end }}
|
||
</tbody>
|
||
</table>
|
||
</details>
|
||
|
||
<details open>
|
||
<summary><strong>Size</strong></summary>
|
||
<table class="table-first-column-align-right">
|
||
<thead>
|
||
<tr>
|
||
<td>Name</td>
|
||
<td>Size</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{{ range $benchmark.benchmarks }}
|
||
{{ if gt .results.cpu_debug.size_bytes 0 }}
|
||
<tr>
|
||
<td>
|
||
<sub style="opacity: 0.65">
|
||
{{ delimit (first (sub (len .path) 1) .path) " > "}}
|
||
</sub>
|
||
<br>
|
||
<strong>{{ index (last 1 .path) 0 }}</strong>
|
||
</td>
|
||
<td>
|
||
<span style="opacity: 0.65"><sub>Debug</sub> {{ .results.cpu_debug.size_bytes }} <sub>b</sub><br></span>
|
||
<sub>Release</sub> {{ .results.cpu_release.size_bytes }} <sub>b</sub>
|
||
</td>
|
||
</tr>
|
||
{{ end }}
|
||
{{ end }}
|
||
</tbody>
|
||
</table>
|
||
</details>
|
||
|
||
|
||
{{ end }}
|