You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Chengxin Ma (Jira)" <ji...@apache.org> on 2019/12/17 16:29:00 UTC

[jira] [Created] (ARROW-7411) [C++][Flight] Incorrect Arrow Flight benchmark output

Chengxin Ma created ARROW-7411:
----------------------------------

             Summary: [C++][Flight] Incorrect Arrow Flight benchmark output
                 Key: ARROW-7411
                 URL: https://issues.apache.org/jira/browse/ARROW-7411
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Benchmarking, C++, FlightRPC
    Affects Versions: 0.15.1
         Environment: macOS
            Reporter: Chengxin Ma
            Assignee: Chengxin Ma
             Fix For: 1.0.0


When running Arrow Flight benchmark in the following scenario, the output is incorrect. 
{code}
$ ./arrow-flight-perf-server &
[1] 12986
Server host: localhost
Server port: 31337
$ ./arrow-flight-benchmark -server_host localhost -test_put 
Using remote server: true
Testing method: DoPut
Server host: localhost
Server port: 31337
Bytes read: 1280000000
Nanos: 496372147
Speed: 2459.25 MB/s
{code}

{{Using remote server}} should be {{false}} and {{Bytes read}} should be {{Bytes write}}.

To correct the result of {{Using remote server}}, we can:

* Change {{if (FLAGS_server_host == "")}} to another condition which checks if there is already an {{arrow-flight-perf-server}} running. This is a bit complicated to do and might add some unnecessary complexity (e.g. we need to make sure it support all OSes.). 

* Delete {{Using remote server}}, since we already have {{Server host}} in the output.

I personally prefer the second option and will make a PR.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)