summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
Diffstat (limited to 'website')
-rw-r--r--website/app.js23
-rw-r--r--website/app_test.js8
-rw-r--r--website/index.html4
3 files changed, 35 insertions, 0 deletions
diff --git a/website/app.js b/website/app.js
index 7346defb4..595e95755 100644
--- a/website/app.js
+++ b/website/app.js
@@ -51,6 +51,10 @@ export function createThroughputColumns(data) {
return createColumns(data, "throughput");
}
+export function createReqPerSecColumns(data) {
+ return createColumns(data, "req_per_sec");
+}
+
export function createBinarySizeColumns(data) {
const propName = "binary_size";
const binarySizeNames = Object.keys(data[data.length - 1][propName]);
@@ -132,6 +136,7 @@ export async function main() {
const execTimeColumns = createExecTimeColumns(data);
const throughputColumns = createThroughputColumns(data);
+ const reqPerSecColumns = createReqPerSecColumns(data);
const binarySizeColumns = createBinarySizeColumns(data);
const threadCountColumns = createThreadCountColumns(data);
const syscallCountColumns = createSyscallCountColumns(data);
@@ -189,6 +194,24 @@ export async function main() {
});
c3.generate({
+ bindto: "#req-per-sec-chart",
+ data: {
+ columns: reqPerSecColumns,
+ onclick: viewCommitOnClick(sha1List)
+ },
+ axis: {
+ x: {
+ type: "category",
+ show: false,
+ categories: sha1ShortList
+ },
+ y: {
+ label: "seconds"
+ }
+ }
+ });
+
+ c3.generate({
bindto: "#binary-size-chart",
data: {
columns: binarySizeColumns,
diff --git a/website/app_test.js b/website/app_test.js
index 42891bf6b..cebf78aeb 100644
--- a/website/app_test.js
+++ b/website/app_test.js
@@ -28,6 +28,10 @@ const regularData = [
"10M_tcp": 1.6,
"10M_cat": 1.0
},
+ req_per_sec: {
+ node: 16000,
+ deno: 1000
+ },
benchmark: {
hello: {
mean: 0.05
@@ -66,6 +70,10 @@ const regularData = [
"10M_tcp": 1.6,
"10M_cat": 1.0
},
+ req_per_sec: {
+ node: 1600,
+ deno: 3.0
+ },
benchmark: {
hello: {
mean: 0.055
diff --git a/website/index.html b/website/index.html
index 03bb268bf..dbdef58b9 100644
--- a/website/index.html
+++ b/website/index.html
@@ -29,6 +29,10 @@
<h2>Throughput</h2>
<div id="throughput-chart"></div>
+ <h2>Req/Sec</h2>
+ Tests HTTP server performance against Node.
+ <div id="req-per-sec-chart"></div>
+
<h2>Executable size</h2>
deno ships only a single binary. We track its size here.
<div id="binary-size-chart"></div>