Day 3: Gear Ratios

Puzzle Description

Advent of Code 2023, Day 3

Scala Center Advent of Code 2023, Day 3

For some reason the title of today half spoils part 2.

Benchmark

Part 1

Mean

Error

JVM

5.390 ms

+/- 0.501 ms

JS

21.100 ms

+/- 1.930 ms

Native

2.688 ms

+/- 0.093 ms

Part 2

Mean

Error

JVM

4.437 ms

+/- 0.346 ms

JS

18.951 ms

+/- 1.179 ms

Native

1.752 ms

+/- 0.023 ms

Run it in the browser!