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

Validate make start performance #1135

Closed
austinlparker opened this issue Sep 20, 2023 · 10 comments
Closed

Validate make start performance #1135

austinlparker opened this issue Sep 20, 2023 · 10 comments

Comments

@austinlparker
Copy link
Member

This issue is meant to collect benchmarks from running 'make start' with a clean cache.

Process:

  • Prune all images from docker cache
  • Set .env version to 'local'
  • Run make start
@austinlparker
Copy link
Member Author

Test 1
MacBook Pro 2023, M2 Max, 32GB RAM - 85s

Test 2
MacBook Air 2022, M2, 8GB RAM - 13m

@austinlparker
Copy link
Member Author

Test 3
Windows 11 Desktop, Ubuntu WSL2. x86 Core i7 (3.6GHz, 8 Cores), 64GB RAM - 7m27s

@austinlparker
Copy link
Member Author

Test 4
MacBook Pro 2021, x86 Core i9 (2.9GHz, 6 Cores), 16GB RAM - 11m18s

@austinlparker
Copy link
Member Author

As a note, moving from an old version to a new version is pretty nominal in terms of build time - on test case 4, it took 33s to do a delta build from 1.4 to 1.5. Note, if you want to try that yourself you actually need to set env to something that isn't published, otherwise it'll just pull the tagged image.

@julianocosta89
Copy link
Member

julianocosta89 commented Sep 21, 2023

Ubuntu
Processor: 11th Gen Intel® Core™ i9-11950H @ 2.60GHz × 16
Memory: 64,0 GiB

I've done 2 tests:

  • Test 1

    docker system prune -a
    docker compose build
    

    Total of 34m

  • Test 2 (changed version to local)

    docker system prune -a
    make start
    

    Total of 32m 52s

@austinlparker
Copy link
Member Author

Ubuntu

Processor: 11th Gen Intel® Core™ i9-11950H @ 2.60GHz × 16

Memory: 64,0 GiB

I've done 2 tests:

  • Test 1

    
    docker system prune -a
    
    docker compose build
    
    

    Total of 34m

  • Test 2 (changed version to local)

    
    docker system prune -a
    
    make start
    
    

    Total of 32m 52s

Huh, this seems like a weird outlier. My Windows build was on a 9th Gen Intel chip... I assume this is a laptop?

@julianocosta89
Copy link
Member

Huh, this seems like a weird outlier. My Windows build was on a 9th Gen Intel chip... I assume this is a laptop?

Yep, laptop

@danielbdias
Copy link
Contributor

danielbdias commented Oct 2, 2023

Hi folks! Here are some tests with my machine:

OS: MacOs Ventura 13.5.2
Computer: iMac 2017

Processor: 3,4 GHz Quad-Core Intel Core i5
Memory: 24,0 GiB

Internet speed: 218 Mbps

Ran docker system prune -a

Test 1 - time docker compose build
Total: 24m 36s

Test 2 - time make start
Total: 7m 44s

Remark: I'm not sure if I set the env as local, I'm using the following vars:

IMAGE_VERSION=1.5.0
ENV_PLATFORM=local

@julianocosta89
Copy link
Member

Ubuntu
Processor: 11th Gen Intel® Core™ i9-11950H @ 2.60GHz × 16
Memory: 64,0 GiB


docker system prune -a

docker compose build

Total of 34m

When using the internet at the office, I'm down to 8m30s, so it seems that my home internet just sucks 😅

@austinlparker
Copy link
Member Author

Closing this as part of issue cleanup. If there's anything that needs to be done, please create a new issue.

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

No branches or pull requests

3 participants