2019-01-25 13:40:56 -05:00
|
|
|
<!-- Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -->
|
2018-09-21 12:06:59 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2018-11-15 19:06:03 -05:00
|
|
|
<title>Deno</title>
|
2019-01-26 12:19:47 -05:00
|
|
|
<link rel="manifest" href="/manifest.json">
|
2018-09-21 12:06:59 -04:00
|
|
|
<link rel="stylesheet" href="https://unpkg.com/c3@0.6.7/c3.min.css">
|
2018-10-18 06:23:26 -04:00
|
|
|
<link rel="stylesheet" href="style.css">
|
|
|
|
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
|
2018-09-21 12:06:59 -04:00
|
|
|
</head>
|
|
|
|
<body>
|
2018-10-18 06:23:26 -04:00
|
|
|
<main>
|
2018-12-20 15:09:44 -05:00
|
|
|
<img src="deno_logo.png" width=150 />
|
|
|
|
|
2018-11-15 19:06:03 -05:00
|
|
|
<h1>Deno</h1>
|
|
|
|
|
2018-12-31 11:09:39 -05:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Linux & Mac</th>
|
|
|
|
<th>Windows</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2019-01-26 10:24:02 -05:00
|
|
|
<a class="badge" href="https://travis-ci.com/denoland/deno"><img src="https://travis-ci.com/denoland/deno.svg?branch=master"/></a>
|
2018-12-31 11:09:39 -05:00
|
|
|
</td>
|
|
|
|
<td>
|
2019-01-26 10:24:02 -05:00
|
|
|
<a class="badge" href="https://ci.appveyor.com/project/deno/deno"><img src="https://ci.appveyor.com/api/projects/status/yel7wtcqwoy0to8x/branch/master?svg=true"/></a>
|
2018-12-31 11:09:39 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
2019-01-28 11:54:09 -05:00
|
|
|
<p>A new way to JavaScript
|
2018-10-18 06:23:26 -04:00
|
|
|
|
|
|
|
<p> <a href="https://github.com/denoland/deno">github.com/denoland/deno</a>
|
|
|
|
|
2019-01-10 11:23:23 -05:00
|
|
|
<p><a href="https://github.com/denoland/deno_std">github.com/denoland/deno_std</a>
|
|
|
|
|
|
|
|
<p><a href="https://github.com/denoland/deno_install">github.com/denoland/deno_install</a>
|
|
|
|
|
|
|
|
<p><a href="https://github.com/denoland/registry">github.com/denoland/registry</a>
|
|
|
|
|
2018-11-15 19:06:03 -05:00
|
|
|
<p> <a href="https://github.com/denoland/deno/blob/master/Docs.md">Documentation</a>
|
|
|
|
|
|
|
|
<p> <a href="typedoc/index.html">API Reference</a>
|
2018-10-18 06:23:26 -04:00
|
|
|
|
2019-01-10 11:23:23 -05:00
|
|
|
<p><a href="https://github.com/denolib/awesome-deno">Links to other Deno resources.</a>
|
2018-12-20 15:09:44 -05:00
|
|
|
|
2018-12-31 11:09:39 -05:00
|
|
|
<h2>Getting started</h2>
|
|
|
|
|
2018-12-18 18:13:01 -05:00
|
|
|
<p>Install Deno into ~/.deno/bin
|
2019-01-26 10:26:54 -05:00
|
|
|
<h2>With Shell</h2>
|
2018-12-18 18:13:01 -05:00
|
|
|
<pre>
|
2019-01-25 13:40:56 -05:00
|
|
|
curl -L https://deno.land/x/install/install.sh | sh
|
2018-12-18 18:13:01 -05:00
|
|
|
export PATH=$HOME/.deno/bin:$PATH
|
|
|
|
</pre>
|
2019-01-26 10:26:54 -05:00
|
|
|
<h2>With PowerShell</h2>
|
|
|
|
<pre>
|
|
|
|
iex (iwr https://deno.land/x/install/install.ps1)
|
|
|
|
</pre>
|
2018-12-18 18:13:01 -05:00
|
|
|
|
|
|
|
Try a Deno program. Install by bash alias.
|
|
|
|
This one serves a local directory in HTTP.
|
|
|
|
<pre>
|
|
|
|
alias file_server="deno \
|
2019-01-13 15:52:42 -05:00
|
|
|
https://deno.land/x/http/file_server.ts --allow-net"
|
2018-12-18 18:13:01 -05:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
Run it:
|
|
|
|
<pre>
|
|
|
|
% file_server .
|
2019-01-13 15:52:42 -05:00
|
|
|
Downloading https://deno.land/x/http/file_server.ts...
|
2018-12-18 18:13:01 -05:00
|
|
|
[...]
|
|
|
|
HTTP server listening on http://0.0.0.0:4500/
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
And if you ever want to upgrade to the latest published version:
|
|
|
|
<pre>
|
|
|
|
file_server --reload
|
|
|
|
</pre>
|
|
|
|
|
2018-12-31 11:09:39 -05:00
|
|
|
<h2>Benchmarks</h2>
|
2018-12-18 18:13:01 -05:00
|
|
|
|
2018-12-31 11:09:39 -05:00
|
|
|
<h3>Execution time</h3>
|
2018-10-18 06:23:26 -04:00
|
|
|
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
|
|
|
|
<a 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 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 compile from scratch.
|
|
|
|
<div id="exec-time-chart"></div>
|
|
|
|
|
2018-12-31 11:09:39 -05:00
|
|
|
<h3>Throughput</h3>
|
2018-12-13 16:28:49 -05:00
|
|
|
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
|
|
|
|
<a href="https://github.com/denoland/deno/blob/master/tests/cat.ts">cat.ts</a>
|
|
|
|
Smaller is better.
|
|
|
|
|
2018-10-18 06:23:26 -04:00
|
|
|
<div id="throughput-chart"></div>
|
|
|
|
|
2018-12-31 11:09:39 -05:00
|
|
|
<h3>Req/Sec</h3>
|
2018-12-13 16:28:49 -05:00
|
|
|
Tests HTTP server performance. 10 keep-alive connections
|
|
|
|
do as many hello-world requests as possible. Bigger is better.
|
|
|
|
<ul>
|
|
|
|
<!-- TODO rename "deno" to "deno_tcp". -->
|
|
|
|
<li><a
|
|
|
|
href="https://github.com/denoland/deno/blob/master/tests/http_bench.ts">deno</a>
|
|
|
|
is a fake http server that doesn't parse HTTP. It is comparable to <a
|
|
|
|
href="https://github.com/denoland/deno/blob/master/tools/node_tcp.js">node_tcp</a>.
|
|
|
|
<li><a
|
2019-01-15 01:43:02 -05:00
|
|
|
href="https://github.com/denoland/deno_std/blob/master/http/http_bench.ts">deno_net_http</a>
|
2018-12-13 16:28:49 -05:00
|
|
|
is a web server written in TypeScript. It
|
|
|
|
is comparable to <a
|
|
|
|
href="https://github.com/denoland/deno/blob/master/tools/node_http.js">node_http</a>.
|
|
|
|
<li><a
|
|
|
|
href="https://github.com/denoland/deno/blob/master/tools/hyper_hello.rs">hyper</a>
|
|
|
|
is a Rust HTTP server and represents an upper bound.
|
|
|
|
</ul>
|
|
|
|
|
2018-10-18 06:23:26 -04:00
|
|
|
<div id="req-per-sec-chart"></div>
|
|
|
|
|
2018-12-31 11:09:39 -05:00
|
|
|
<h3>Executable size</h3>
|
2018-10-18 06:23:26 -04:00
|
|
|
deno ships only a single binary. We track its size here.
|
|
|
|
<div id="binary-size-chart"></div>
|
|
|
|
|
2018-12-31 11:09:39 -05:00
|
|
|
<h3>Thread count</h3>
|
2018-10-18 06:23:26 -04:00
|
|
|
How many threads various programs use.
|
|
|
|
<div id="thread-count-chart"></div>
|
|
|
|
|
2018-12-31 11:09:39 -05:00
|
|
|
<h3>Syscall count</h3>
|
2018-10-18 06:23:26 -04:00
|
|
|
How many total syscalls are performed when executing a given script.
|
|
|
|
<div id="syscall-count-chart"></div>
|
|
|
|
|
2018-12-31 11:09:39 -05:00
|
|
|
<h3>References</h3>
|
2018-10-20 03:56:24 -04:00
|
|
|
<p> <a href="./all_benchmark.html">All benchmark data</a>
|
|
|
|
|
2018-10-18 06:23:26 -04:00
|
|
|
</main>
|
2018-09-21 12:06:59 -04:00
|
|
|
<script src="https://unpkg.com/d3@5.7.0/dist/d3.min.js"></script>
|
|
|
|
<script src="https://unpkg.com/c3@0.6.7/c3.min.js"></script>
|
2018-09-26 20:41:23 -04:00
|
|
|
|
2018-09-24 11:31:14 -04:00
|
|
|
<script type="module">
|
2018-10-20 03:56:24 -04:00
|
|
|
import { drawCharts } from "./app.js";
|
2018-11-14 09:38:42 -05:00
|
|
|
|
|
|
|
drawCharts("recent.json");
|
2018-09-24 11:31:14 -04:00
|
|
|
</script>
|
2018-09-21 12:06:59 -04:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|