summaryrefslogtreecommitdiff
path: root/website/app_test.js
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2018-09-25 23:52:47 -0700
committerRyan Dahl <ry@tinyclouds.org>2018-09-26 08:35:12 -0400
commit3a6da19eb80c5959e0fe0ff00b093b9f7d85d618 (patch)
tree5ec030e9227b258f817f1399e508363404821abd /website/app_test.js
parent8c7416b3f666c62327a2306e955ec59823b1f239 (diff)
Revert "Expand binary size benchmark (#830)"
This reverts commit 8c7416b3f666c62327a2306e955ec59823b1f239.
Diffstat (limited to 'website/app_test.js')
-rw-r--r--website/app_test.js30
1 files changed, 4 insertions, 26 deletions
diff --git a/website/app_test.js b/website/app_test.js
index e0d1a4969..1468fce22 100644
--- a/website/app_test.js
+++ b/website/app_test.js
@@ -14,12 +14,7 @@ const regularData = [
{
created_at: "2018-01-01T01:00:00Z",
sha1: "abcdef",
- binary_size: {
- deno: 100000000,
- "main.js": 90000000,
- "main.js.map": 80000000,
- "snapshot_deno.bin": 70000000
- },
+ binary_size: 100000000,
benchmark: {
hello: {
mean: 0.05
@@ -45,12 +40,7 @@ const regularData = [
{
created_at: "2018-01-02T01:00:00Z",
sha1: "012345",
- binary_size: {
- deno: 100000001,
- "main.js": 90000001,
- "main.js.map": 80000001,
- "snapshot_deno.bin": 70000001
- },
+ binary_size: 110000000,
benchmark: {
hello: {
mean: 0.055
@@ -79,7 +69,6 @@ const irregularData = [
{
created_at: "2018-01-01T01:00:00Z",
sha1: "123",
- binary_size: {},
benchmark: {
hello: {},
relative_import: {},
@@ -92,7 +81,6 @@ const irregularData = [
{
created_at: "2018-02-01T01:00:00Z",
sha1: "456",
- binary_size: 100000000,
benchmark: {}
}
];
@@ -119,22 +107,12 @@ test(function createExecTimeColumnsIrregularData() {
test(function createBinarySizeColumnsRegularData() {
const columns = createBinarySizeColumns(regularData);
- assertEqual(columns, [
- ["deno", 100000000, 100000001],
- ["main.js", 90000000, 90000001],
- ["main.js.map", 80000000, 80000001],
- ["snapshot_deno.bin", 70000000, 70000001]
- ]);
+ assertEqual(columns, [["binary_size", 100000000, 110000000]]);
});
test(function createBinarySizeColumnsIrregularData() {
const columns = createBinarySizeColumns(irregularData);
- assertEqual(columns, [
- ["deno", 0, 100000000],
- ["main.js", 0, 0],
- ["main.js.map", 0, 0],
- ["snapshot_deno.bin", 0, 0]
- ]);
+ assertEqual(columns, [["binary_size", 0, 0]]);
});
test(function createThreadCountColumnsRegularData() {