summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-12-31 11:09:39 -0500
committerRyan Dahl <ry@tinyclouds.org>2018-12-31 19:38:27 +0000
commit2c0cf1bdf7321220fdc3cbe788e989ad10b18e0c (patch)
tree354be0cd590d0fb6abf268b002a0354e36582195
parentef840f9e06f7f973f3d2c99316c979815609e000 (diff)
Add CI badges to website
-rw-r--r--website/index.html34
-rw-r--r--website/style.css20
2 files changed, 40 insertions, 14 deletions
diff --git a/website/index.html b/website/index.html
index fa641ad66..f7e6a8d67 100644
--- a/website/index.html
+++ b/website/index.html
@@ -13,6 +13,21 @@
<h1>Deno</h1>
+ <table>
+ <tr>
+ <th>Linux &amp; Mac</th>
+ <th>Windows</th>
+ </tr>
+ <tr>
+ <td>
+ <img src="https://travis-ci.com/denoland/deno.svg?branch=master"/>
+ </td>
+ <td>
+ <img src="https://ci.appveyor.com/api/projects/status/yel7wtcqwoy0to8x/branch/master?svg=true"/>
+ </td>
+ </tr>
+ </table>
+
<p>Deno is a program for executing JavaScript and TypeScript outside of the
web browser.
@@ -24,6 +39,8 @@
<p><a href="https://github.com/denoland/deno_std">Deno standard modules</a>
+ <h2>Getting started</h2>
+
<p>Install Deno into ~/.deno/bin
<pre>
curl -L https://deno.land/x/install/install.py | python
@@ -50,8 +67,9 @@ And if you ever want to upgrade to the latest published version:
file_server --reload
</pre>
+ <h2>Benchmarks</h2>
- <h2>Execution time</h2>
+ <h3>Execution time</h3>
This shows how much time total it takes to run a few simple deno programs:
<a href="https://github.com/denoland/deno/blob/master/tests/002_hello.ts">tests/002_hello.ts</a>
and
@@ -62,7 +80,7 @@ file_server --reload
A cold startup is when deno must compile from scratch.
<div id="exec-time-chart"></div>
- <h2>Throughput</h2>
+ <h3>Throughput</h3>
Time it takes to pipe a certain amount of data through Deno.
<a href="https://github.com/denoland/deno/blob/master/tests/echo_server.ts">echo_server.ts</a>
and
@@ -71,7 +89,7 @@ file_server --reload
<div id="throughput-chart"></div>
- <h2>Req/Sec</h2>
+ <h3>Req/Sec</h3>
Tests HTTP server performance. 10 keep-alive connections
do as many hello-world requests as possible. Bigger is better.
<ul>
@@ -92,23 +110,23 @@ file_server --reload
<div id="req-per-sec-chart"></div>
- <h2>Executable size</h2>
+ <h3>Executable size</h3>
deno ships only a single binary. We track its size here.
<div id="binary-size-chart"></div>
- <h2>Thread count</h2>
+ <h3>Thread count</h3>
How many threads various programs use.
<div id="thread-count-chart"></div>
- <h2>Syscall count</h2>
+ <h3>Syscall count</h3>
How many total syscalls are performed when executing a given script.
<div id="syscall-count-chart"></div>
- <h2>Travis</h2>
+ <h3>Travis</h3>
How long for Travis CI to return a green status for pull requests.
<div id="travis-compile-time-chart"></div>
- <h2>References</h2>
+ <h3>References</h3>
<p> <a href="./all_benchmark.html">All benchmark data</a>
</main>
diff --git a/website/style.css b/website/style.css
index 1e604d0e8..c5626fb4b 100644
--- a/website/style.css
+++ b/website/style.css
@@ -22,13 +22,26 @@ a {
pre {
background: #ddd;
padding: 15px;
- word-wrap: normal
+ word-wrap: normal;
+ overflow-x: auto;
}
a:hover {
background: #aee;
}
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+td, th {
+ text-align: center;
+ vertical-align: middle;
+ border: 1px solid #aaa;
+ padding: 6px;
+}
+
@media only screen and (max-device-width: 480px) {
main {
@@ -38,10 +51,5 @@ a:hover {
body {
margin: 0;
}
-
- svg {
- max-width: 375px;
- margin: 25px -15px;
- }
}