[metrics-bugs] #34070 [Metrics/Library]: Add parsing support for OnionPerf analysis files

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Apr 30 12:55:28 UTC 2020


#34070: Add parsing support for OnionPerf analysis files
---------------------------------+----------------------
     Reporter:  karsten          |      Owner:  karsten
         Type:  enhancement      |     Status:  assigned
     Priority:  Medium           |  Milestone:
    Component:  Metrics/Library  |    Version:
     Severity:  Normal           |   Keywords:
Actual Points:                   |  Parent ID:
       Points:                   |   Reviewer:
      Sponsor:                   |
---------------------------------+----------------------
 Back in the days, Torperf wrote its results to .tpf files using one line
 per measurement with space-separated key=value pairs. OnionPerf continued
 using this format in addition to writing a more sophisticated JSON format.
 It's time to teach metrics-lib how to read that JSON format, so that we
 can abandon the .tpf format. That is going to simplify upcoming changes to
 OnionPerf where we then only have to write a single output format.

 The first step is to add parsing support for OnionPerf analysis files to
 metrics-lib. I worked on a patch over the past weeks that parses JSON
 files and internally converts them to Torperf results. The idea here is to
 keep changes to applications like metrics-web as small as possible. They
 can simply read different descriptor files and obtain the same output as
 before. We can later extract more parts from OnionPerf analysis files and
 provide them in a new interface, but we don't have to do that right now.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/34070>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the metrics-bugs mailing list