z1brc

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

README.md (657B)


      1 # z1brc
      2 
      3 Zig version of [One Billion Row Challenge](https://github.com/gunnarmorling/1brc)
      4 
      5 This solution uses
      6 - memory-mapped input file
      7 - threads to divide the work
      8 - standard library hashmap and float parsing
      9 
     10 And on my tiny Pinebook Pro laptop it completes in about 85 seconds. 
     11 
     12 The leading java solution completes (on a _standard_ JVM not graal...) in about 85 seconds on the same machine.
     13 
     14 Failures:
     15 - I've tried using integers instead of parsing floats, it doesn't seem to make much difference
     16 - I've tried playing with the hash function for the hash map. The default for StringArrayHashMap is Wyhash and none of the other options make it go faster.