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

2825.307 μs

+/- 22.163 μs

JS

3566.333 μs

+/- 1.329 μs

Native

2872.981 μs

+/- 5.704 μs

Part 2

Mean

Error

JVM

1830.088 μs

+/- 6.446 μs

JS

2859.817 μs

+/- 1.546 μs

Native

1936.802 μs

+/- 11.242 μs

Run it in the browser!