Skip to content

Commit

Permalink
🐛 fixed time command
Browse files Browse the repository at this point in the history
  • Loading branch information
kzkedzierska committed Dec 9, 2024
1 parent 0189fe8 commit 60177eb
Show file tree
Hide file tree
Showing 11 changed files with 308 additions and 247 deletions.
24 changes: 8 additions & 16 deletions 2024/day_01/index.html

Large diffs are not rendered by default.

15 changes: 6 additions & 9 deletions 2024/day_01/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"title: \"Day 1: Historian Hysteria\"\n",
"author: \"Kasia Kedzierska\"\n",
"date: December 1, 2024\n",
"date-modified: last-modified\n",
"format: \n",
" html:\n",
" theme: sketchy\n",
Expand Down Expand Up @@ -240,8 +239,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 1 μs, sys: 0 ns, total: 1 μs\n",
"Wall time: 4.05 μs\n"
"CPU times: user 1.66 ms, sys: 1.08 ms, total: 2.74 ms\n",
"Wall time: 2.45 ms\n"
]
},
{
Expand All @@ -256,8 +255,7 @@
}
],
"source": [
"%time\n",
"part_one(\"../inputs/day_01.txt\")"
"%time part_one(\"../inputs/day_01.txt\")"
]
},
{
Expand Down Expand Up @@ -388,8 +386,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 1 μs, sys: 0 ns, total: 1 μs\n",
"Wall time: 2.86 μs\n"
"CPU times: user 5.15 ms, sys: 1.38 ms, total: 6.53 ms\n",
"Wall time: 51.6 ms\n"
]
},
{
Expand All @@ -404,8 +402,7 @@
}
],
"source": [
"%time\n",
"part_two(\"../inputs/day_01.txt\")"
"%time part_two(\"../inputs/day_01.txt\")"
]
},
{
Expand Down
24 changes: 8 additions & 16 deletions 2024/day_02/index.html

Large diffs are not rendered by default.

15 changes: 6 additions & 9 deletions 2024/day_02/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"title: \"Day 2: Red-Nosed Reports\"\n",
"author: \"Kasia Kedzierska\"\n",
"date: December 2, 2024\n",
"date-modified: last-modified\n",
"format: \n",
" html:\n",
" theme: sketchy\n",
Expand Down Expand Up @@ -232,8 +231,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 1 μs, sys: 0 ns, total: 1 μs\n",
"Wall time: 4.05 μs\n"
"CPU times: user 1.94 ms, sys: 1.17 ms, total: 3.11 ms\n",
"Wall time: 3.2 ms\n"
]
},
{
Expand All @@ -248,8 +247,7 @@
}
],
"source": [
"%time\n",
"part_one(\"../inputs/day_02.txt\")"
"%time part_one(\"../inputs/day_02.txt\")"
]
},
{
Expand Down Expand Up @@ -348,8 +346,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 3 μs, sys: 0 ns, total: 3 μs\n",
"Wall time: 5.01 μs\n"
"CPU times: user 3.81 ms, sys: 777 μs, total: 4.59 ms\n",
"Wall time: 4.64 ms\n"
]
},
{
Expand All @@ -364,8 +362,7 @@
}
],
"source": [
"%time\n",
"part_two(\"../inputs/day_02.txt\")"
"%time part_two(\"../inputs/day_02.txt\")"
]
},
{
Expand Down
24 changes: 8 additions & 16 deletions 2024/day_03/index.html

Large diffs are not rendered by default.

15 changes: 6 additions & 9 deletions 2024/day_03/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"title: \"Day 3: Mull It Over\"\n",
"author: \"Kasia Kedzierska\"\n",
"date: December 3, 2024\n",
"date-modified: last-modified\n",
"format:\n",
" html:\n",
" theme: sketchy\n",
Expand Down Expand Up @@ -134,8 +133,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 2 μs, sys: 0 ns, total: 2 μs\n",
"Wall time: 8.82 μs\n"
"CPU times: user 674 μs, sys: 423 μs, total: 1.1 ms\n",
"Wall time: 831 μs\n"
]
},
{
Expand All @@ -150,8 +149,7 @@
}
],
"source": [
"%time\n",
"part_one(\"../inputs/day_03.txt\")"
"%time part_one(\"../inputs/day_03.txt\")"
]
},
{
Expand Down Expand Up @@ -307,8 +305,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 0 ns, sys: 0 ns, total: 0 ns\n",
"Wall time: 1.91 μs\n"
"CPU times: user 843 μs, sys: 241 μs, total: 1.08 ms\n",
"Wall time: 1.27 ms\n"
]
},
{
Expand All @@ -323,8 +321,7 @@
}
],
"source": [
"%time\n",
"part_two(\"../inputs/day_03.txt\")"
"%time part_two(\"../inputs/day_03.txt\")"
]
},
{
Expand Down
24 changes: 8 additions & 16 deletions 2024/day_04/index.html

Large diffs are not rendered by default.

15 changes: 6 additions & 9 deletions 2024/day_04/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"title: \"Day 4: Ceres Search\"\n",
"author: \"Kasia Kedzierska\"\n",
"date: December 4, 2024\n",
"date-modified: last-modified\n",
"format:\n",
" html:\n",
" theme: sketchy\n",
Expand Down Expand Up @@ -255,8 +254,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 1 μs, sys: 0 ns, total: 1 μs\n",
"Wall time: 4.05 μs\n"
"CPU times: user 15.4 ms, sys: 1.95 ms, total: 17.4 ms\n",
"Wall time: 25 ms\n"
]
},
{
Expand All @@ -271,8 +270,7 @@
}
],
"source": [
"%time\n",
"part_one(\"../inputs/day_04.txt\")"
"%time part_one(\"../inputs/day_04.txt\")"
]
},
{
Expand Down Expand Up @@ -444,8 +442,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 1e+03 ns, sys: 0 ns, total: 1e+03 ns\n",
"Wall time: 2.15 μs\n"
"CPU times: user 4.74 ms, sys: 991 μs, total: 5.73 ms\n",
"Wall time: 47.4 ms\n"
]
},
{
Expand All @@ -460,8 +458,7 @@
}
],
"source": [
"%time\n",
"part_two(\"../inputs/day_04.txt\")"
"%time part_two(\"../inputs/day_04.txt\")"
]
},
{
Expand Down
24 changes: 8 additions & 16 deletions 2024/day_05/index.html

Large diffs are not rendered by default.

15 changes: 6 additions & 9 deletions 2024/day_05/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"title: \"Day 5: Print Queue\"\n",
"author: \"Kasia Kedzierska\"\n",
"date: December 05, 2024\n",
"date-modified: last-modified\n",
"format:\n",
" html:\n",
" theme: sketchy\n",
Expand Down Expand Up @@ -203,8 +202,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 2 μs, sys: 1 μs, total: 3 μs\n",
"Wall time: 5.96 μs\n"
"CPU times: user 5.27 ms, sys: 307 μs, total: 5.58 ms\n",
"Wall time: 7.58 ms\n"
]
},
{
Expand All @@ -219,8 +218,7 @@
}
],
"source": [
"%time\n",
"part_one(input_file)"
"%time part_one(input_file)"
]
},
{
Expand Down Expand Up @@ -370,8 +368,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 3 μs, sys: 1 μs, total: 4 μs\n",
"Wall time: 5.96 μs\n"
"CPU times: user 730 ms, sys: 7.03 ms, total: 737 ms\n",
"Wall time: 790 ms\n"
]
},
{
Expand All @@ -386,8 +384,7 @@
}
],
"source": [
"%time\n",
"part_two(input_file)"
"%time part_two(input_file)"
]
},
{
Expand Down
Loading

0 comments on commit 60177eb

Please sign in to comment.