Skip to content

Commit 57e6c07

Browse files
committed
WIP
1 parent 2fd095d commit 57e6c07

File tree

1 file changed

+44
-2
lines changed
  • content/learning-paths/servers-and-cloud-computing/go-benchmarking-with-sweet/refactor1

1 file changed

+44
-2
lines changed

content/learning-paths/servers-and-cloud-computing/go-benchmarking-with-sweet/refactor1/README.md

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,48 @@ A tool for running Go benchmarks using Sweet on remote GCP instances and compari
44

55
## Installation
66

7+
### Python Environment Setup
8+
9+
#### Installing pyenv
10+
11+
```bash
12+
# macOS (using Homebrew)
13+
brew update
14+
brew install pyenv
15+
16+
# Linux
17+
sudo apt-get -y update
18+
19+
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev
20+
21+
curl https://pyenv.run | bash
22+
23+
# Add to your shell configuration (.bashrc, .zshrc, etc.)
24+
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
25+
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
26+
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
27+
```
28+
29+
Restart your shell or run `source ~/.bashrc` (or your appropriate shell config file).
30+
31+
#### Setting up Python 3.9.22 with pyenv and virtualenv
32+
33+
```bash
34+
# Install Python 3.9.22
35+
pyenv install 3.9.22
36+
37+
# Create a virtualenv for this project
38+
pyenv virtualenv 3.9.22 rexec-sweet-env
39+
40+
# Activate the virtualenv
41+
pyenv activate rexec-sweet-env
42+
# Or navigate to the project directory and set local Python version
43+
cd /path/to/project
44+
pyenv local rexec-sweet-env
45+
```
46+
47+
#### Installing the package
48+
749
```bash
850
# Install from the project directory
951
pip install -e .
@@ -37,7 +79,7 @@ rexec_sweet/
3779
tests/ # Test suite
3880
```
3981

40-
## Development
82+
## Running Tests
4183

4284
```bash
4385
# Install development dependencies
@@ -52,7 +94,7 @@ make test-cov
5294

5395
## Requirements
5496

55-
- Python 3.8+
97+
- Python 3.9+
5698
- Google Cloud SDK
5799
- Go with benchstat tool installed
58100
- Sweet benchmarking tool

0 commit comments

Comments
 (0)