Skip to content

ARM Docker image #104

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

Closed
sixers opened this issue Nov 19, 2021 · 1 comment
Closed

ARM Docker image #104

sixers opened this issue Nov 19, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@sixers
Copy link

sixers commented Nov 19, 2021

Feature request

Build & publish ARM64 version of the Docker image.

Is your feature request related to a problem? Please describe.

AMD64 images have terrible performance on M1 Macs (even M1 Pro/M1 Max)

Describe the solution you'd like

It would be cool to build & publish linux/arm64 version of the Docker image to Docker Hub, it would help a lot with local development on M1 Macs.

Describe alternatives you've considered

Running existing linux/amd64 image.

Additional context

sysbench CPU benchmark results for linux/amd64 version of the base postgres image:

root@c0af6e852479:/# sysbench cpu --threads=2 run
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 2
Initializing random number generator from current time


Prime numbers limit: 10000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:   360.03

General statistics:
    total time:                          10.0029s
    total number of events:              3602

Latency (ms):
         min:                                    5.33
         avg:                                    5.55
         max:                                   11.34
         95th percentile:                        5.67
         sum:                                19994.19

Threads fairness:
    events (avg/stddev):           1801.0000/0.00
    execution time (avg/stddev):   9.9971/0.00

sysbench CPU benchmark results for linux/arm64 version of the base postgres image:

root@3cd6496ebf2a:/# sysbench cpu --threads=2 run
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 2
Initializing random number generator from current time


Prime numbers limit: 10000

Initializing worker threads...

Threads started!

CPU speed:
    events per second: 21270.60

General statistics:
    total time:                          10.0001s
    total number of events:              212719

Latency (ms):
         min:                                    0.09
         avg:                                    0.09
         max:                                    2.68
         95th percentile:                        0.10
         sum:                                19970.88

Threads fairness:
    events (avg/stddev):           106359.5000/5.50
    execution time (avg/stddev):   9.9854/0.00

60x faster!

@sixers sixers added the enhancement New feature or request label Nov 19, 2021
This was referenced Nov 23, 2021
@soedirgo
Copy link
Member

soedirgo commented Jan 6, 2022

Resolved in #98

@soedirgo soedirgo closed this as completed Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants