Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1c503a5

Browse files
Adds a benchmark page to the website
The page looks for images in a folder to display these
1 parent0e115a9 commit1c503a5

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

‎_config.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ navigation:
3636
url:/blog
3737
-title:Docs
3838
url:/docs
39+
-title:Benchmarks
40+
url:/benchmarks
3941
-title:GitHub
4042
url:https://github.com/RustPython/RustPython/
4143
-title:Gitter

‎_layouts/benchmarks.html‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: default
3+
---
4+
5+
<section>
6+
<divclass="w-80 m-auto mt-2">
7+
<divclass="d-md-flex">
8+
<divclass="d-sm-none">
9+
<imgclass="logo"src="{{site.baseurl}}/assets/img/rust-python-logo.svg"alt="RustPython Logo">
10+
</div>
11+
<divclass="pl-md-2">
12+
<divclass="section-title">Benchmarks</div>
13+
<divclass="title">{{ site.title }} {{ page.title | escape }}</div>
14+
<small>{{ site.benchmarks-intro }}</small>
15+
</div>
16+
</div>
17+
</div>
18+
</section>
19+
20+
<divclass="w-80 m-auto mt-2">
21+
<divclass="benchmarks-intro">
22+
{{ content }}
23+
</div>
24+
25+
{% for image in site.static_files %}
26+
{% if image.path contains 'benchmarks' %}
27+
<figure>
28+
<imgsrc="{{ site.baseurl }}{{ image.path }}"alt="image"width="30%"/>
29+
<figcaption>{{ image.name }}</figcaption>
30+
</figure>
31+
{% endif %}
32+
{% endfor %}
33+
</div>

‎benchmarks.markdown‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
layout:benchmarks
3+
title:Benchmarks
4+
---
5+
6+
RustPython is an awesome Python interpreter! On this page you can see how it compares to CPython.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp