News for hackers. Stuff that matters.
Re:A persistent key-value server in 40 lines and a sad fact ... by jpfr on Monday June 22, 2015 @05:42AM (#9757208)

    The test highlights an issue not covered by micro-
    benchmarking: Encoding and Decoding should perform
    similar, as factual throughput is determined by
    Min(Encoding performance, Decoding performance).
    For unknown reasons JDK serialization manages to encode
    the message tested like 500_000 times per second,
    decoding performance is only 80_000 per second so in
    the test the receiver gets dropped quickly:
At 500,000 messages/sec you can burn 6000 cycles per message on a 3Ghz core.

Probably he has a problem with malloc during the decoding phase. Every malloc and every free costs between 300 (best case) and several thousand cycles (syscall is required).

Re:A persistent key-value server in 40 lines and a sad fact ... by moru0011 on Monday June 22, 2015 @07:15AM (#9757495)
its not "he" that's a JDK issue