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

artpar's attempt

Open artpar opened this issue 1 year ago • 1 comments

  • parallel execution
  • vector for mix/max/sum
  • memory mapped files
  • cached parsing for numbers

The numbers which I am seeing on my machine

[base]                   183.28s user 5.63s system 100% cpu 3:08.77 total
[memory mapped+parallel] 167.33s user 5.04s system 630% cpu 27.321 total
[above+vector]           157.12s user 3.43s system 670% cpu 23.958 total

artpar avatar Jan 03 '24 03:01 artpar

Shamelessly sharing this idea for JVM/GC tuning in another PR/discussion? https://github.com/gunnarmorling/1brc/pull/15#issuecomment-1875495420

lobaorn avatar Jan 03 '24 15:01 lobaorn

@lobaorn it makes the runtime worse for my implementation.

artpar avatar Jan 05 '24 07:01 artpar

Could you please run test.sh artpar and make sure all the tests pass? Thanks!

gunnarmorling avatar Jan 05 '24 09:01 gunnarmorling

Done. Thanks for taking the time to organize this @gunnarmorling

artpar avatar Jan 05 '24 13:01 artpar

00:16.196, nice. Thx for participating!

gunnarmorling avatar Jan 05 '24 22:01 gunnarmorling