From 1d48e025d341c9295f7ee02039eaa6c00a720344 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 2 Feb 2019 18:40:18 -0500 Subject: web design (#1655) --- website/index.html | 367 +++++++++++++++++++++++++++++++++-------------------- website/style.css | 2 +- 2 files changed, 232 insertions(+), 137 deletions(-) (limited to 'website') diff --git a/website/index.html b/website/index.html index 8599c39a8..d36c0da9f 100644 --- a/website/index.html +++ b/website/index.html @@ -1,151 +1,246 @@ - - Deno - - - - - - -
- - - -

Deno

- - - - - - - - - - -
Linux & MacWindows
- - - -
- -

A new way to JavaScript - -

github.com/denoland/deno - -

github.com/denoland/deno_std - -

github.com/denoland/deno_install - -

github.com/denoland/registry - -

Documentation - -

API Reference - -

Links to other Deno resources. - -

Getting started

- -

Install Deno into ~/.deno/bin -

With Shell

-
-curl -L https://deno.land/x/install/install.sh | sh
-export PATH=$HOME/.deno/bin:$PATH
-
-

With PowerShell

-
+  
+    Deno
+    
+    
+    
+    
+  
+  
+    
+ + + +

Deno

+ +

+ A new way to JavaScript + + +

+ + + + + + + + + + + + + + + + + + + + + + + + +
Linux & MacWindows
deno + + + +
deno_std + +
+ deno_install + + + + +
registry
+ +

+ Documentation +

+ +

API Reference

+ +

+ Other Deno resources. +

+ +

Install

+ +

With Shell

+
+curl -fL https://deno.land/x/install/install.sh | sh
+
+

With PowerShell

+
 iex (iwr https://deno.land/x/install/install.ps1)
-
+
-Try a Deno program. Install by bash alias. -This one serves a local directory in HTTP. -
+      

Mini-tutorial

+ + Try a Deno program. This one serves a local directory in HTTP. + +
 alias file_server="deno \
   https://deno.land/x/http/file_server.ts --allow-net"
-
+
-Run it: -
+      Run it:
+      
 % file_server .
 Downloading https://deno.land/x/http/file_server.ts...
 [...]
 HTTP server listening on http://0.0.0.0:4500/
-
+
-And if you ever want to upgrade to the latest published version: -
+      And if you ever want to upgrade to the latest published version:
+      
 file_server --reload
-
- -

Benchmarks

- -

Execution time

- This shows how much time total it takes to run a few simple deno programs: - tests/002_hello.ts - and - tests/003_relative_import.ts. - 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. -
- -

Throughput

- Time it takes to pipe a certain amount of data through Deno. - echo_server.ts - and - cat.ts - Smaller is better. - -
- -

Req/Sec

- Tests HTTP server performance. 10 keep-alive connections - do as many hello-world requests as possible. Bigger is better. -
    - -
  • deno - is a fake http server that doesn't parse HTTP. It is comparable to node_tcp. -
  • deno_net_http - is a web server written in TypeScript. It - is comparable to node_http. -
  • hyper - is a Rust HTTP server and represents an upper bound. -
- -
- -

Executable size

- deno ships only a single binary. We track its size here. -
- -

Thread count

- How many threads various programs use. -
- -

Syscall count

- How many total syscalls are performed when executing a given script. -
- -

References

-

All benchmark data - -

- - - - - + + +

Dig in...

+ + Documentation + +

API Reference

+ +

+ Links to other Deno resources. +

+ +

Continuous Benchmarks

+ + These plots are updated on every commit to + master branch. + +

Execution time

+ This shows how much time total it takes to run a few simple deno programs: + tests/002_hello.ts + and + tests/003_relative_import.ts. 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. +
+ +

Throughput

+ Time it takes to pipe a certain amount of data through Deno. + echo_server.ts + and + cat.ts + Smaller is better. + +
+ +

Req/Sec

+ Tests HTTP server performance. 10 keep-alive connections do as many + hello-world requests as possible. Bigger is better. + + +
+ +

Executable size

+ deno ships only a single binary. We track its size here. +
+ +

Thread count

+ How many threads various programs use. +
+ +

Syscall count

+ How many total syscalls are performed when executing a given script. +
+ +

Historical benchmark data

+ + + + + + + - diff --git a/website/style.css b/website/style.css index d3bb3261d..eaaf4b6fa 100644 --- a/website/style.css +++ b/website/style.css @@ -2,7 +2,7 @@ body { color: #111; background: #f0f0f0; - margin: 80px 0; + margin: 1em; font-family: Arial; font-size: 20px; } -- cgit v1.2.3