1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-03 04:48:52 -05:00

Refactor markup of the site (#1663)

This commit is contained in:
Sergey Golovin 2019-02-03 20:49:38 +03:00 committed by Ryan Dahl
parent 181b03273c
commit 201b520c9a

View file

@ -31,28 +31,31 @@
<th>Windows</th> <th>Windows</th>
</tr> </tr>
<tr> <tr>
<th><a href="https://github.com/denoland/deno">deno</a></th> <th>
<a href="https://github.com/denoland/deno">deno</a>
</th>
<td> <td>
<a class="badge" href="https://travis-ci.com/denoland/deno" <a class="badge" href="https://travis-ci.com/denoland/deno">
><img src="https://travis-ci.com/denoland/deno.svg?branch=master" <img src="https://travis-ci.com/denoland/deno.svg?branch=master"/>
/></a> </a>
</td> </td>
<td> <td>
<a class="badge" href="https://ci.appveyor.com/project/deno/deno" <a class="badge" href="https://ci.appveyor.com/project/deno/deno">
><img <img src="https://ci.appveyor.com/api/projects/status/yel7wtcqwoy0to8x/branch/master?svg=true"/>
src="https://ci.appveyor.com/api/projects/status/yel7wtcqwoy0to8x/branch/master?svg=true" </a>
/></a>
</td> </td>
</tr> </tr>
<tr> <tr>
<th><a href="https://github.com/denoland/deno_std">deno_std</a></th> <th>
<a href="https://github.com/denoland/deno_std">deno_std</a>
</th>
<td colspan="2"> <td colspan="2">
<a <a
class="badge" class="badge"
href="https://dev.azure.com/denoland/deno_std/_build?definitionId=2" href="https://dev.azure.com/denoland/deno_std/_build?definitionId=2"
><img >
src="https://dev.azure.com/denoland/deno_std/_apis/build/status/denoland.deno_std?branchName=master" <img src="https://dev.azure.com/denoland/deno_std/_apis/build/status/denoland.deno_std?branchName=master"/>
/></a> </a>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -60,159 +63,161 @@
<a href="https://github.com/denoland/deno_install">deno_install</a> <a href="https://github.com/denoland/deno_install">deno_install</a>
</th> </th>
<td> <td>
<a class="badge" href="https://travis-ci.com/denoland/deno_install" <a class="badge" href="https://travis-ci.com/denoland/deno_install">
><img <img src="https://travis-ci.com/denoland/deno_install.svg?branch=master"/>
src="https://travis-ci.com/denoland/deno_install.svg?branch=master" </a>
/></a>
</td> </td>
<td> <td>
<a <a
class="badge" class="badge"
href="https://ci.appveyor.com/project/deno/deno-install" href="https://ci.appveyor.com/project/deno/deno-install"
><img >
src="https://ci.appveyor.com/api/projects/status/gtekeaf7r60xa896?branch=master&svg=true" <img src="https://ci.appveyor.com/api/projects/status/gtekeaf7r60xa896?branch=master&svg=true"/>
/></a> </a>
</td> </td>
</tr> </tr>
<tr> <tr>
<th><a href="https://github.com/denoland/registry">registry</a></th> <th>
<a href="https://github.com/denoland/registry">registry</a>
</th>
</tr> </tr>
</table> </table>
<p> <p>
<a href="https://github.com/denoland/deno/blob/master/Docs.md" <a href="https://github.com/denoland/deno/blob/master/Docs.md">
>Documentation</a Documentation
> </a>
</p> </p>
<p><a href="typedoc/index.html">API Reference</a></p>
<p> <p>
<a href="https://github.com/denolib/awesome-deno" <a href="typedoc/index.html">
>Other Deno resources.</a API Reference
> </a>
</p>
<p>
<a href="https://github.com/denolib/awesome-deno">
Other Deno resources.
</a>
</p> </p>
<h2>Install</h2> <h2>Install</h2>
<p>With Shell</p> <p>With Shell</p>
<pre> <pre>curl -fL https://deno.land/x/install/install.sh | sh</pre>
curl -fL https://deno.land/x/install/install.sh | sh
</pre
>
<p>With PowerShell</p> <p>With PowerShell</p>
<pre> <pre>iex (iwr https://deno.land/x/install/install.ps1)</pre>
iex (iwr https://deno.land/x/install/install.ps1)
</pre
>
<h2>Mini-tutorial</h2> <h2>Mini-tutorial</h2>
Try a Deno program. This one serves a local directory in HTTP. <p>Try a Deno program. This one serves a local directory in HTTP.</p>
<pre> <pre>
alias file_server="deno \ alias file_server="deno \
https://deno.land/x/http/file_server.ts --allow-net" https://deno.land/x/http/file_server.ts --allow-net"
</pre </pre>
>
Run it: <p>Run it:</p>
<pre> <pre>
% file_server . % file_server .
Downloading https://deno.land/x/http/file_server.ts... Downloading https://deno.land/x/http/file_server.ts...
[...] [...]
HTTP server listening on http://0.0.0.0:4500/ HTTP server listening on http://0.0.0.0:4500/
</pre </pre>
> <p>And if you ever want to upgrade to the latest published version:</p>
<pre>file_server --reload</pre>
And if you ever want to upgrade to the latest published version:
<pre>
file_server --reload
</pre
>
<h2>Dig in...</h2> <h2>Dig in...</h2>
<a href="https://github.com/denoland/deno/blob/master/Docs.md" <a href="https://github.com/denoland/deno/blob/master/Docs.md">
>Documentation</a Documentation
> </a>
<p><a href="typedoc/index.html">API Reference</a></p>
<p> <p>
<a href="https://github.com/denolib/awesome-deno" <a href="typedoc/index.html">API Reference</a>
>Links to other Deno resources.</a </p>
>
<p>
<a href="https://github.com/denolib/awesome-deno">
Links to other Deno resources.
</a>
</p> </p>
<h2>Continuous Benchmarks</h2> <h2>Continuous Benchmarks</h2>
These plots are updated on every commit to <p>These plots are updated on every commit to</p>
<a href="https://github.com/denoland/deno">master branch</a>. <p>
<a href="https://github.com/denoland/deno">master branch</a>
</p>
<h3>Execution time</h3> <h3>Execution time</h3>
This shows how much time total it takes to run a few simple deno programs: <p>This shows how much time total it takes to run a few simple deno programs:</p>
<a href="https://github.com/denoland/deno/blob/master/tests/002_hello.ts" <a href="https://github.com/denoland/deno/blob/master/tests/002_hello.ts">
>tests/002_hello.ts</a tests/002_hello.ts
> </a>
and <p>and</p>
<p>
<a <a
href="https://github.com/denoland/deno/blob/master/tests/003_relative_import.ts" href="https://github.com/denoland/deno/blob/master/tests/003_relative_import.ts"
>tests/003_relative_import.ts</a >
>. For deno to execute typescript, it must first compile it to JS. A warm tests/003_relative_import.ts
</a>
</p>
<p>
For deno to execute typescript, it must first compile it to JS. A warm
startup is when deno has a cached JS output already, so it should be fast startup is when deno has a cached JS output already, so it should be fast
because it bypasses the TS compiler. A cold startup is when deno must because it bypasses the TS compiler. A cold startup is when deno must
compile from scratch. compile from scratch.
</p>
<div id="exec-time-chart"></div> <div id="exec-time-chart"></div>
<h3>Throughput</h3> <h3>Throughput</h3>
Time it takes to pipe a certain amount of data through Deno.
<a <p>Time it takes to pipe a certain amount of data through Deno.</p>
href="https://github.com/denoland/deno/blob/master/tests/echo_server.ts"
>echo_server.ts</a <a href="https://github.com/denoland/deno/blob/master/tests/echo_server.ts">
> echo_server.ts
and </a>
<a href="https://github.com/denoland/deno/blob/master/tests/cat.ts" <p>and</p>
>cat.ts</a <a href="https://github.com/denoland/deno/blob/master/tests/cat.ts">
> cat.ts
Smaller is better. </a>
<p>Smaller is better.</p>
<div id="throughput-chart"></div> <div id="throughput-chart"></div>
<h3>Req/Sec</h3> <h3>Req/Sec</h3>
<p>
Tests HTTP server performance. 10 keep-alive connections do as many Tests HTTP server performance. 10 keep-alive connections do as many
hello-world requests as possible. Bigger is better. hello-world requests as possible. Bigger is better.
</p>
<ul> <ul>
<!-- TODO rename "deno" to "deno_tcp". --> <!-- TODO rename "deno" to "deno_tcp". -->
<li> <li>
<a <a href="https://github.com/denoland/deno/blob/master/tests/http_bench.ts">
href="https://github.com/denoland/deno/blob/master/tests/http_bench.ts" deno
>deno</a </a>
>
is a fake http server that doesn't parse HTTP. It is comparable to is a fake http server that doesn't parse HTTP. It is comparable to
<a <a href="https://github.com/denoland/deno/blob/master/tools/node_tcp.js">
href="https://github.com/denoland/deno/blob/master/tools/node_tcp.js" node_tcp
>node_tcp</a </a>
>. .
</li> </li>
<li> <li>
<a <a href="https://github.com/denoland/deno_std/blob/master/http/http_bench.ts">
href="https://github.com/denoland/deno_std/blob/master/http/http_bench.ts" deno_net_http
>deno_net_http</a </a>
>
is a web server written in TypeScript. It is comparable to is a web server written in TypeScript. It is comparable to
<a <a href="https://github.com/denoland/deno/blob/master/tools/node_http.js">
href="https://github.com/denoland/deno/blob/master/tools/node_http.js" node_http
>node_http</a </a>
>. .
</li> </li>
<li> <li>
<a <a href="https://github.com/denoland/deno/blob/master/tools/hyper_hello.rs">
href="https://github.com/denoland/deno/blob/master/tools/hyper_hello.rs" hyper
>hyper</a </a>
>
is a Rust HTTP server and represents an upper bound. is a Rust HTTP server and represents an upper bound.
</li> </li>
</ul> </ul>
@ -220,18 +225,20 @@ file_server --reload
<div id="req-per-sec-chart"></div> <div id="req-per-sec-chart"></div>
<h3>Executable size</h3> <h3>Executable size</h3>
deno ships only a single binary. We track its size here. <p>deno ships only a single binary. We track its size here.</p>
<div id="binary-size-chart"></div> <div id="binary-size-chart"></div>
<h3>Thread count</h3> <h3>Thread count</h3>
How many threads various programs use. <p>How many threads various programs use.</p>
<div id="thread-count-chart"></div> <div id="thread-count-chart"></div>
<h3>Syscall count</h3> <h3>Syscall count</h3>
How many total syscalls are performed when executing a given script. <p>How many total syscalls are performed when executing a given script.</p>
<div id="syscall-count-chart"></div> <div id="syscall-count-chart"></div>
<p><a href="./all_benchmark.html">Historical benchmark data</a></p> <p>
<a href="./all_benchmark.html">Historical benchmark data</a>
</p>
</main> </main>
<script src="https://unpkg.com/d3@5.7.0/dist/d3.min.js"></script> <script src="https://unpkg.com/d3@5.7.0/dist/d3.min.js"></script>