'Is the homebrew chromium M1 optimised

Is the brew install --cask chromium install of homebrew chromium package optimised for M1 silicon or does it run under rosetta.

The package page doesn't offer much info on this : https://formulae.brew.sh/cask/chromium



Solution 1:[1]

Simply open a terminal, cd to the executable location (for normal applications this is in /Applications/app name.app/contents/Mac OS. Then run "file" with the executable name in this folder. The results will tell you if the executable is built for intel/arm or both.

Solution 2:[2]

Solution 3:[3]

Sure, just look at Chromium cask code: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/chromium.rb

 arch = Hardware::CPU.intel? ? "Mac" : "Mac_Arm"
 ...
 url "https://commondatastorage.googleapis.com/chromium-browser-snapshots/#{arch}/#{version}/chrome-mac.zip

Checked on version: https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac_Arm/948906/chrome-mac.zip

file ~/Downloads/chrome-mac/Chromium.app/Contents/MacOS/Chromium

Chromium: Mach-O 64-bit executable arm64

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user15349046
Solution 2 yooouuri
Solution 3