Comments (3)
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.
I think that would be enough.
from pyperformance.
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)
- Have `pyperformance run` run `pyperf system tune` HOT 5
- Benchmark Groups Have Some Minor Problems HOT 3
- speed.python.org has no results since October 17
- Why no releases? HOT 1
- benchmark representing async-heavy, heterogeneous workload HOT 7
- CI fails with 3.12 HOT 2
- django_template benchmark fails on main due to lack of distutils
- Add rinohtype benchmark?
- Tests fail with Python 3.12 HOT 9
- Use more than one core HOT 6
- Impossible to add a benchmark that exercises newer Python features HOT 1
- Add type hints?
- asyncio gather vs TaskGroup in async_tree benchmarks HOT 3
- Need to vendor lib2to3 for CPython 3.13+
- Add benchmark for pip-compile
- Need benchmark using `__getattribute__`
- Editable installation isn't working properly
- Allow compiling dependencies rather than using prebuilts
- Help me to completely disable psutil
- benchmarking: cannot install pypy-devel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyperformance.