Skip to content

martinvuyk/1brc-mojo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

1 Billion Row Challenge in Mojo

Machine used as reference

Intel i7 7700HQ , 4 cores 8 threads @ 2.8 GHz

Mojo version mojo 24.2.1 takes 16.3s without yet having a hash map and min max calculations implemented. The parallelize function doesn't use every thread available for some reason. Mojo nightly mojo 2024.4.2414 takes 7.5s but also doesn't use every thread. Performance gain was because file.read_bytes was refactored to not copy data

Go takes about 6.5s on average, in this one and this other one

The Java version from Artsiom Korzun takes 3.8s

About

1 Billion Row Challenge implemented in Mojo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages