Skip to content

Realistic performance expectations for Apple Silicon vs x86 #3061

Answered by BurntSushi
phodge asked this question in Q&A
Discussion options

You must be logged in to vote

These are my results on an i9-12900K (with the same checkout of Linux as you):

$ lscpu | rg 'Model name'
Model name:                           12th Gen Intel(R) Core(TM) i9-12900K

$ hyperfine 'rg spaghetti ./ | cat'
Benchmark 1: rg spaghetti ./ | cat
  Time (mean ± σ):      82.8 ms ±   1.9 ms    [User: 301.2 ms, System: 594.5 ms]
  Range (min … max):    79.0 ms …  87.0 ms    34 runs

And now on my M2 mac mini:

$ sysctl -a | rg -F 'machdep.cpu'
machdep.cpu.cores_per_package: 8
machdep.cpu.core_count: 8
machdep.cpu.logical_per_package: 8
machdep.cpu.thread_count: 8
machdep.cpu.brand_string: Apple M2

$ hyperfine 'rg spaghetti ./ | cat'
Benchmark 1: rg spaghetti ./ | cat
  Time (mean ± σ): …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@BurntSushi
Comment options

Comment options

You must be logged in to vote
1 reply
@phodge
Comment options

Answer selected by phodge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants