hashtable-latencies icon indicating copy to clipboard operation
hashtable-latencies copied to clipboard

Memory usage of the languages?

Open chenglou opened this issue 9 years ago • 2 comments

@spion what were your conclusion on the memory usage of the languages beside OCaml? This'd be a good comparison point.

chenglou avatar Jul 31 '16 18:07 chenglou

Sorry, I forgot to update the README, but the reason why the OCaml version used so much RAM was a mistake in my code (I used an array of 1024 chars instead of a Buffer, which made the actual size of buffers in memory 8KB instead of 1KB).

After switching to Buffer memory usage was comparable with the other versions. I didn't do any strict measurements, but most were in the range 300MB-800MB

I'll update the readme to remove the memory concerns.

edit: done. Some concrete numbers about the memory usage observed are also available here: https://github.com/spion/hashtable-latencies/issues/9#issuecomment-223816311

spion avatar Jul 31 '16 22:07 spion

300 MB and 800 MB still sound pretty different. :) Would be neat to see a comparison of all the alternatives if you ever revisit this.

sophiebits avatar Jul 31 '16 22:07 sophiebits