From ac7cb54d5f07475347f70b2b5896487dc1f3569e Mon Sep 17 00:00:00 2001 From: AlexAegis Date: Sun, 10 Dec 2023 10:43:58 +0100 Subject: [PATCH] chore: added benchmarks for 2023 10 --- .github/badges/typescript/2023.json | 2 +- solutions/typescript/2023/10/src/p1.ts | 2 +- solutions/typescript/2023/10/src/p2.ts | 2 +- solutions/typescript/readme.md | 54 +++++++++++++------------- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/badges/typescript/2023.json b/.github/badges/typescript/2023.json index 60b983ecd..0d222e4a2 100644 --- a/.github/badges/typescript/2023.json +++ b/.github/badges/typescript/2023.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, "label": "Advent of TypeScript 2023", - "message": "8/25", + "message": "9/25", "color": "orange" } diff --git a/solutions/typescript/2023/10/src/p1.ts b/solutions/typescript/2023/10/src/p1.ts index e66440c73..3daa06b1f 100644 --- a/solutions/typescript/2023/10/src/p1.ts +++ b/solutions/typescript/2023/10/src/p1.ts @@ -19,4 +19,4 @@ export const p1 = (input: string): number => { .first(); }; -await task(p1, packageJson.aoc); // 6733 ~0ms +await task(p1, packageJson.aoc); // 6733 ~68.44ms diff --git a/solutions/typescript/2023/10/src/p2.ts b/solutions/typescript/2023/10/src/p2.ts index 8647d4d32..718f18fd4 100644 --- a/solutions/typescript/2023/10/src/p2.ts +++ b/solutions/typescript/2023/10/src/p2.ts @@ -186,4 +186,4 @@ export const p2 = (input: string): number => { return inside.valueArray().filter((node) => !liminalNodes.has(node)).length ?? -1; }; -await task(p2, packageJson.aoc); // 435 ~0ms +await task(p2, packageJson.aoc); // 435 ~1.4s diff --git a/solutions/typescript/readme.md b/solutions/typescript/readme.md index d209ed737..2b6dab219 100644 --- a/solutions/typescript/readme.md +++ b/solutions/typescript/readme.md @@ -6,33 +6,33 @@ -| Day | Part One | Part Two | -| --------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| [Day 1](/solutions/typescript/2023/01/) | [0.19ms](/solutions/typescript/2023/01/src/p1.ts) | [1.38ms](/solutions/typescript/2023/01/src/p2.ts) | -| [Day 2](/solutions/typescript/2023/02/) | [0.22ms](/solutions/typescript/2023/02/src/p1.ts) | [0.25ms](/solutions/typescript/2023/02/src/p2.ts) | -| [Day 3](/solutions/typescript/2023/03/) | [1.39ms](/solutions/typescript/2023/03/src/p1.ts) | [3.89ms](/solutions/typescript/2023/03/src/p2.ts) | -| [Day 4](/solutions/typescript/2023/04/) | [4.36ms](/solutions/typescript/2023/04/src/p1.ts) | [4.57ms](/solutions/typescript/2023/04/src/p2.ts) | -| [Day 5](/solutions/typescript/2023/05/) | [?ms](/solutions/typescript/2023/05/src/p1.ts) | [?ms](/solutions/typescript/2023/05/src/p2.ts) | -| [Day 6](/solutions/typescript/2023/06/) | [40μs](/solutions/typescript/2023/06/src/p1.ts) | [7μs](/solutions/typescript/2023/06/src/p2.ts) | -| [Day 7](/solutions/typescript/2023/07/) | [8.70ms](/solutions/typescript/2023/07/src/p1.ts) | [20.46ms](/solutions/typescript/2023/07/src/p2.ts) | -| [Day 8](/solutions/typescript/2023/08/) | [10.25ms](/solutions/typescript/2023/08/src/p1.ts) | [11.44ms](/solutions/typescript/2023/08/src/p2.ts) | -| [Day 9](/solutions/typescript/2023/09/) | [1.57ms](/solutions/typescript/2023/09/src/p1.ts) | [1.62ms](/solutions/typescript/2023/09/src/p2.ts) | -| Day 10 | - | - | -| Day 11 | - | - | -| Day 12 | - | - | -| Day 13 | - | - | -| Day 14 | - | - | -| Day 15 | - | - | -| Day 16 | - | - | -| Day 17 | - | - | -| Day 18 | - | - | -| Day 19 | - | - | -| Day 20 | - | - | -| Day 21 | - | - | -| Day 22 | - | - | -| Day 23 | - | - | -| Day 24 | - | - | -| Day 25 | - | - | +| Day | Part One | Part Two | +| ---------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| [Day 1](/solutions/typescript/2023/01/) | [0.19ms](/solutions/typescript/2023/01/src/p1.ts) | [1.38ms](/solutions/typescript/2023/01/src/p2.ts) | +| [Day 2](/solutions/typescript/2023/02/) | [0.22ms](/solutions/typescript/2023/02/src/p1.ts) | [0.25ms](/solutions/typescript/2023/02/src/p2.ts) | +| [Day 3](/solutions/typescript/2023/03/) | [1.39ms](/solutions/typescript/2023/03/src/p1.ts) | [3.89ms](/solutions/typescript/2023/03/src/p2.ts) | +| [Day 4](/solutions/typescript/2023/04/) | [4.36ms](/solutions/typescript/2023/04/src/p1.ts) | [4.57ms](/solutions/typescript/2023/04/src/p2.ts) | +| [Day 5](/solutions/typescript/2023/05/) | [?ms](/solutions/typescript/2023/05/src/p1.ts) | [?ms](/solutions/typescript/2023/05/src/p2.ts) | +| [Day 6](/solutions/typescript/2023/06/) | [40μs](/solutions/typescript/2023/06/src/p1.ts) | [7μs](/solutions/typescript/2023/06/src/p2.ts) | +| [Day 7](/solutions/typescript/2023/07/) | [8.70ms](/solutions/typescript/2023/07/src/p1.ts) | [20.46ms](/solutions/typescript/2023/07/src/p2.ts) | +| [Day 8](/solutions/typescript/2023/08/) | [10.25ms](/solutions/typescript/2023/08/src/p1.ts) | [11.44ms](/solutions/typescript/2023/08/src/p2.ts) | +| [Day 9](/solutions/typescript/2023/09/) | [1.57ms](/solutions/typescript/2023/09/src/p1.ts) | [1.62ms](/solutions/typescript/2023/09/src/p2.ts) | +| [Day 10](/solutions/typescript/2023/10/) | [68.44ms](/solutions/typescript/2023/10/src/p1.ts) | [1.4s](/solutions/typescript/2023/10/src/p2.ts) | +| Day 11 | - | - | +| Day 12 | - | - | +| Day 13 | - | - | +| Day 14 | - | - | +| Day 15 | - | - | +| Day 16 | - | - | +| Day 17 | - | - | +| Day 18 | - | - | +| Day 19 | - | - | +| Day 20 | - | - | +| Day 21 | - | - | +| Day 22 | - | - | +| Day 23 | - | - | +| Day 24 | - | - | +| Day 25 | - | - |