Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build CPython and Run pyperformance Benchmarks #1

Open
MAMV3x3 opened this issue Oct 6, 2023 · 2 comments
Open

Build CPython and Run pyperformance Benchmarks #1

MAMV3x3 opened this issue Oct 6, 2023 · 2 comments
Assignees

Comments

@MAMV3x3
Copy link
Collaborator

MAMV3x3 commented Oct 6, 2023

Introduction

This issue documents the steps and results for building CPython on my machine and running the pyperformance benchmarks against it.

@MAMV3x3 MAMV3x3 self-assigned this Oct 6, 2023
@MAMV3x3
Copy link
Collaborator Author

MAMV3x3 commented Oct 6, 2023

1. Cloning the CPython Repository

The CPython codebase was cloned from its official repository to ensure a fresh and updated source.

2. Building CPython:

  • Configuration:
    • Used the ./configure --with-pydebug command to configure the CPython build for debugging purposes.
  • Compilation:
    • Ran make -s -j2 to compile the source code. (The -j2 flag was utilized to speed up the compilation by using two parallel jobs.)

@MAMV3x3
Copy link
Collaborator Author

MAMV3x3 commented Oct 9, 2023

3. Resolving Dependency Issues:

  • Encountered issues while trying to use the pip command.
  • Attempted to resolve by installing python3-pip using apt, but faced dependency conflicts.
  • Successfully resolved the issue with broken dependencies and fixed pip.

4. Running the Benchmark:

  • Executed the benchmarking process on the compiled CPython interpreter.
  • Command used: pyperformance run --python=./python --output=result_cpython.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant