diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-09-25 04:28:56 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-09-25 13:13:09 -0400 |
commit | 1956d6846c0ef716455f3cf6b1d5caa6cee09a08 (patch) | |
tree | 34f8f499e82b7eb02cd23c9ebc6950c3fabc0b53 /website/app_test.js | |
parent | 3c24b9f724287d2ca722e61a395ad9c93b7551c6 (diff) |
Also plot cold start time.
Diffstat (limited to 'website/app_test.js')
-rw-r--r-- | website/app_test.js | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/website/app_test.js b/website/app_test.js index 48b7f2859..1468fce22 100644 --- a/website/app_test.js +++ b/website/app_test.js @@ -21,6 +21,12 @@ const regularData = [ }, relative_import: { mean: 0.06 + }, + cold_hello: { + mean: 0.05 + }, + cold_relative_import: { + mean: 0.06 } }, thread_count: { @@ -41,6 +47,12 @@ const regularData = [ }, relative_import: { mean: 0.065 + }, + cold_hello: { + mean: 0.055 + }, + cold_relative_import: { + mean: 0.065 } }, thread_count: { @@ -59,7 +71,9 @@ const irregularData = [ sha1: "123", benchmark: { hello: {}, - relative_import: {} + relative_import: {}, + cold_hello: {}, + cold_relative_import: {} }, thread_count: {}, syscall_count: {} @@ -75,13 +89,20 @@ test(function createExecTimeColumnsRegularData() { const columns = createExecTimeColumns(regularData); assertEqual(columns, [ ["hello", 0.05, 0.055], - ["relative_import", 0.06, 0.065] + ["relative_import", 0.06, 0.065], + ["cold_hello", 0.05, 0.055], + ["cold_relative_import", 0.06, 0.065] ]); }); test(function createExecTimeColumnsIrregularData() { const columns = createExecTimeColumns(irregularData); - assertEqual(columns, [["hello", 0, 0], ["relative_import", 0, 0]]); + assertEqual(columns, [ + ["hello", 0, 0], + ["relative_import", 0, 0], + ["cold_hello", 0, 0], + ["cold_relative_import", 0, 0] + ]); }); test(function createBinarySizeColumnsRegularData() { |