Coder Social home page Coder Social logo

Comments (3)

vstinner avatar vstinner commented on July 18, 2024

You can manually inspect JSON files using the perf module directly. Example:

python3 -m perf show --metadata test.json
Common metadata:
- aslr: Full randomization
- cpu_affinity: 3,7 (isolated)
- cpu_config: 3,7=driver:intel_pstate, intel_pstate:no turbo, governor:powersave
- cpu_count: 8
- cpu_model_name: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
- hostname: smithers
- loops: 1
- perf_version: 0.7.8
- performance_version: 0.2.2
- platform: Linux-4.5.7-300.fc24.x86_64-x86_64-with-fedora-24-Twenty_Four
- python_cflags: -Wno-unused-result -Wsign-compare -Wunreachable-code -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv
- python_executable: /home/haypo/prog/python/performance/venv/cpython3.5-19471deca1cb/bin/python
- python_implementation: cpython
- python_version: 3.5.1 (64-bit)
- timer: clock_gettime(CLOCK_MONOTONIC), resolution: 1.00 ns

2to3
----

Metadata:
- cpu_freq: 3=3400 MHz, 7=1942 MHz
- cpu_temp: coretemp:Physical id 0=54 C, coretemp:Core 0=49 C, coretemp:Core 1=50 C, coretemp:Core 2=47 C, coretemp:Core 3=54 C
- date: 2016-09-13T11:28:01
- description: Performance of the Python 2to3 program
- duration: 2.4 sec
- load_avg_1min: 1.46
- mem_max_rss: 13.0 MB
- runnable_threads: 2

Median: 2.38 sec

(...)

Sadly, I removed the --metadata parameter from the "perf compare" command. I should reimplement it.

But there are many metadata, the output can be seen as too verbose.

Yeah, we can at least write a short summary of the most important metadata. For example, display python_executable + python_version?

from pyperformance.

brettcannon avatar brettcannon commented on July 18, 2024

I think that would be enough.

from pyperformance.

vstinner avatar vstinner commented on July 18, 2024

Fixed by the commit 4c566f1. Python version is now displayed.

By the way, I added a new "show" command. Since the old Python benchmark suite (benchmarks) didn't support writing results into a file, there was no need for such command before.

The display_suite_metadata() function of performance/compare.py is written to be extensible (display more metadata).

I chose to not display the python_executable metadata because we currently get a file like ".../venv/cpython3.5-8d80a6da3c25/bin/python" which is not the original path. Maybe performance should override this metadata somehow? At least for the first run which just created the virtual environment? But I suggest to open a new issue for that, if you consider that it's worth it.

from pyperformance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.