mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
Add benchmark descriptions.
This commit is contained in:
parent
c75b1b6237
commit
ef41a1ab2b
3 changed files with 44 additions and 8 deletions
|
@ -86,6 +86,8 @@ Progress towards future releases is tracked
|
||||||
Roadmap is [here](https://github.com/denoland/deno/blob/master/Roadmap.md).
|
Roadmap is [here](https://github.com/denoland/deno/blob/master/Roadmap.md).
|
||||||
Also see [this presentation](http://tinyclouds.org/jsconf2018.pdf).
|
Also see [this presentation](http://tinyclouds.org/jsconf2018.pdf).
|
||||||
|
|
||||||
|
[Benchmarks](https://denoland.github.io/deno/)
|
||||||
|
|
||||||
[Chat room](https://gitter.im/denolife/Lobby).
|
[Chat room](https://gitter.im/denolife/Lobby).
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,7 @@ export async function main() {
|
||||||
const syscallCountColumns = createSyscallCountColumns(data);
|
const syscallCountColumns = createSyscallCountColumns(data);
|
||||||
const travisCompileTimeColumns = createTravisCompileTimeColumns(travisData);
|
const travisCompileTimeColumns = createTravisCompileTimeColumns(travisData);
|
||||||
const sha1List = createSha1List(data);
|
const sha1List = createSha1List(data);
|
||||||
const sha1SuffixList = sha1List.map(sha1 => sha1.substring(sha1.length - 6));
|
const sha1ShortList = sha1List.map(sha1 => sha1.substring(0, 6));
|
||||||
const prNumberList = travisData.map(d => d.pull_request_number);
|
const prNumberList = travisData.map(d => d.pull_request_number);
|
||||||
|
|
||||||
const viewCommitOnClick = _sha1List => d => {
|
const viewCommitOnClick = _sha1List => d => {
|
||||||
|
@ -144,7 +144,11 @@ export async function main() {
|
||||||
axis: {
|
axis: {
|
||||||
x: {
|
x: {
|
||||||
type: "category",
|
type: "category",
|
||||||
categories: sha1SuffixList
|
show: false,
|
||||||
|
categories: sha1List
|
||||||
|
},
|
||||||
|
y: {
|
||||||
|
label: "seconds",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -158,7 +162,8 @@ export async function main() {
|
||||||
axis: {
|
axis: {
|
||||||
x: {
|
x: {
|
||||||
type: "category",
|
type: "category",
|
||||||
categories: sha1SuffixList
|
show: false,
|
||||||
|
categories: sha1ShortList
|
||||||
},
|
},
|
||||||
y: {
|
y: {
|
||||||
tick: {
|
tick: {
|
||||||
|
@ -177,7 +182,8 @@ export async function main() {
|
||||||
axis: {
|
axis: {
|
||||||
x: {
|
x: {
|
||||||
type: "category",
|
type: "category",
|
||||||
categories: sha1SuffixList
|
show: false,
|
||||||
|
categories: sha1ShortList
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -191,7 +197,8 @@ export async function main() {
|
||||||
axis: {
|
axis: {
|
||||||
x: {
|
x: {
|
||||||
type: "category",
|
type: "category",
|
||||||
categories: sha1SuffixList
|
show: false,
|
||||||
|
categories: sha1ShortList
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,22 +1,49 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>deno benchmark</title>
|
<title>deno</title>
|
||||||
<link rel="stylesheet" href="https://unpkg.com/c3@0.6.7/c3.min.css">
|
<link rel="stylesheet" href="https://unpkg.com/c3@0.6.7/c3.min.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<h1>deno</h1>
|
||||||
|
|
||||||
|
<p> <a href="https://github.com/denoland/deno">github.com/denoland/deno</a>
|
||||||
|
|
||||||
|
<p> <a href="https://github.com/denoland/deno/issues/573">User Documentation</a>
|
||||||
|
|
||||||
|
<p> <a href="https://github.com/denoland/deno/blob/master/Roadmap.md">Roadmap</a>
|
||||||
|
|
||||||
|
<p> <a href="https://github.com/denoland/deno_install">Install!</a>
|
||||||
|
|
||||||
<h2>Execution time</h2>
|
<h2>Execution time</h2>
|
||||||
|
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>
|
<div id="exec-time-chart"></div>
|
||||||
<h2>Binary size</h2>
|
|
||||||
|
<h2>Executable size</h2>
|
||||||
|
deno ships only a single binary. We track its size here.
|
||||||
<div id="binary-size-chart"></div>
|
<div id="binary-size-chart"></div>
|
||||||
|
|
||||||
<h2>Thread count</h2>
|
<h2>Thread count</h2>
|
||||||
|
How many threads various programs use.
|
||||||
<div id="thread-count-chart"></div>
|
<div id="thread-count-chart"></div>
|
||||||
|
|
||||||
<h2>Syscall count</h2>
|
<h2>Syscall count</h2>
|
||||||
|
How many total syscalls are performed when executing a given script.
|
||||||
<div id="syscall-count-chart"></div>
|
<div id="syscall-count-chart"></div>
|
||||||
<h2>Travis compile time</h2>
|
|
||||||
|
<h2>Travis</h2>
|
||||||
|
How long for Travis CI to return a green status for pull requests.
|
||||||
<div id="travis-compile-time-chart"></div>
|
<div id="travis-compile-time-chart"></div>
|
||||||
<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>
|
||||||
<script src="https://unpkg.com/c3@0.6.7/c3.min.js"></script>
|
<script src="https://unpkg.com/c3@0.6.7/c3.min.js"></script>
|
||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import { main } from "./app.js";
|
import { main } from "./app.js";
|
||||||
main();
|
main();
|
||||||
|
|
Loading…
Reference in a new issue