From c61a0f2f84e619a70704b59fd72cd7da863d4461 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 15 Oct 2018 16:44:35 -0400 Subject: First pass at http benchmark. --- website/app.js | 23 +++++++++++++++++++++++ website/app_test.js | 8 ++++++++ website/index.html | 4 ++++ 3 files changed, 35 insertions(+) (limited to 'website') 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); @@ -188,6 +193,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: { 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 @@

Throughput

+

Req/Sec

+ Tests HTTP server performance against Node. +
+

Executable size

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