1brc icon indicating copy to clipboard operation
1brc copied to clipboard

Naive Ruby & Go implementations

Open jbarrieault opened this issue 1 year ago • 0 comments

Trying a naive implementation in both Ruby and Go.

The implementation:

  • creates a map of city -> min/max/count/sum
  • reads the measurements file line by line
  • sets/updates city key in the map using the line temperature data
  • loops over the completed city map key/vals, calculating mean using the data then prints the result

Everything is serial.

jbarrieault avatar Feb 26 '24 15:02 jbarrieault