Skip to content

Uncensored-Developer/1brc-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

One Billion Rows Challenge (Golang)

These are my solutions to the One Billion Row Challenge. I started with a simple unoptimised solution (solution1.go) which takes 2.24 minutes to an optimised and parallelised solution (solution5.go) which take 6.32 seconds.

NOTE:

  • These results were produced on my PC (32GB RAM, 16 core CPU, linux/amd64)
  • The major focus was on optimising the solution not necessarily following proper standards.

Here is my article on this for more details and results.

USAGE

  • Run and benchmark all solutions
./1brc-go -file=<path_to_weather_data_file>
  • Run and benchmark a specific solution
./1brc-go -file=<path_to_weather_data_file> -solution=1
  • Run CPU profile
./1brc-go -file=<path_to_weather_data_file> -solution=1 -cpu-profile=cpu.prof

About

One Billion Rows Challenge (Golang)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages