From commits-return-1145-archive-asf-public=cust-asf.ponee.io@zipkin.apache.org Fri May 10 14:09:49 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 6B6F618061A for ; Fri, 10 May 2019 16:09:49 +0200 (CEST) Received: (qmail 61452 invoked by uid 500); 10 May 2019 14:09:48 -0000 Mailing-List: contact commits-help@zipkin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zipkin.apache.org Delivered-To: mailing list commits@zipkin.apache.org Received: (qmail 61443 invoked by uid 99); 10 May 2019 14:09:48 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2019 14:09:48 +0000 From: GitBox To: commits@zipkin.apache.org Subject: [GitHub] [incubator-zipkin] adriancole edited a comment on issue #2579: Benchmark bytes / bytebuffer, protobuf vs zipkin vs wire. Message-ID: <155749738885.27470.3013558062691407959.gitbox@gitbox.apache.org> Date: Fri, 10 May 2019 14:09:48 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit adriancole edited a comment on issue #2579: Benchmark bytes / bytebuffer, protobuf vs zipkin vs wire. URL: https://github.com/apache/incubator-zipkin/pull/2579#issuecomment-491300014 yep.. if you revise from 10k spans per message down to 1k spans (which is a fairly high number anyway considering this is per traced host/second), there is not much difference between google and wire anyway. However, it does help memory wise to have wire decode bytes into hex strings. with wire making hex manually ``` ProtoCodecBenchmarks.bytebuffer_protobufDecoder:bytebuffer_protobufDecoder·p0.999 sample 2716.557 us/op ProtoCodecBenchmarks.bytebuffer_protobufDecoder:·gc.alloc.rate.norm sample 15 2271332.980 ± 49.158 B/op ProtoCodecBenchmarks.bytebuffer_wireDecoder:bytebuffer_wireDecoder·p0.999 sample 3082.207 us/op ProtoCodecBenchmarks.bytebuffer_wireDecoder:·gc.alloc.rate.norm sample 15 2707555.118 ± 43.790 B/op ``` with wire native hex stringing ``` ProtoCodecBenchmarks.bytebuffer_protobufDecoder:bytebuffer_protobufDecoder·p0.999 sample 2808.340 us/op ProtoCodecBenchmarks.bytebuffer_protobufDecoder:·gc.alloc.rate.norm sample 15 2271332.557 ± 37.638 B/op ProtoCodecBenchmarks.bytebuffer_wireDecoder:bytebuffer_wireDecoder·p0.999 sample 3045.130 us/op ProtoCodecBenchmarks.bytebuffer_wireDecoder:·gc.alloc.rate.norm sample 15 2579549.017 ± 59.592 B/op ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services