Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Never trust a computer you can't repair yourself.


computers / comp.sys.mac.system / Re: Mac Mini M2

SubjectAuthor
* Mac Mini M2Alan Browne
`- Re: Mac Mini M2Alan Browne

1
Mac Mini M2

<OKFUM.8805$%WT8.2564@fx12.iad>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=16679&group=comp.sys.mac.system#16679

  copy link   Newsgroups: comp.sys.mac.system
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx12.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Newsgroups: comp.sys.mac.system
Content-Language: en-US
From: bitbuc...@blackhole.com (Alan Browne)
Subject: Mac Mini M2
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 42
Message-ID: <OKFUM.8805$%WT8.2564@fx12.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sun, 08 Oct 2023 22:07:42 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sun, 8 Oct 2023 18:07:42 -0400
X-Received-Bytes: 1937
 by: Alan Browne - Sun, 8 Oct 2023 22:07 UTC

Just brought home a Mac Mini (M2) that belongs to a client.

Copied over a file I compiled in x86 (command line) and it would not run
on the M2 - Rosetta did not get invoked.

Next installed the compiler (universal binary itself) and the installer
for the compiler (x86) induced Rosetta to be installed.

Once that was done then the x86 binary (compiled on old Mac) ran fine on
the M2. Nice.

Next re-compiled the program on the M2 Mac and it of course ran fine.

Then ... tried a simple multithreaded test program, ran fine.

However, where the M2 can Handbrake the i7 iMac 2.5x to 1 or better,
when I run a brute force search in 8 threads to find a, b, c where:

ab + c = 2020
a + bc = 2021

Single threaded test: i7: 1.468s M2: 2.369s 1:1.59

Multithreaded test (8 threads): i7: 0.387s M2: 1.055s 1:2.73

Multithreaded test (4 threads): i7: 0.408s M2: 1.159s 1:2.84

Proving (no surprise really) that even a 2012 i7 (4 core, HT) @ 3.8GHz
will beat Apple silicon on number bashing.

To be clear: the M2 was running aarch64 code, not x86 via Rosetta.

Compiler: FPC 3.2.2

Source code on request if someone wants to re-code in c or Swift or...

--
“Markets can remain irrational longer than your can remain solvent.”
- John Maynard Keynes.

Re: Mac Mini M2

<oaXUM.24189$rbid.18672@fx18.iad>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=16695&group=comp.sys.mac.system#16695

  copy link   Newsgroups: comp.sys.mac.system
Path: i2pn2.org!i2pn.org!news.furie.org.uk!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Mac Mini M2
Content-Language: en-US
Newsgroups: comp.sys.mac.system
References: <OKFUM.8805$%WT8.2564@fx12.iad>
From: bitbuc...@blackhole.com (Alan Browne)
In-Reply-To: <OKFUM.8805$%WT8.2564@fx12.iad>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 52
Message-ID: <oaXUM.24189$rbid.18672@fx18.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 09 Oct 2023 17:57:40 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 9 Oct 2023 13:57:40 -0400
X-Received-Bytes: 2597
 by: Alan Browne - Mon, 9 Oct 2023 17:57 UTC

On 2023-10-08 18:07, Alan Browne wrote:
>
> Just brought home a Mac Mini (M2) that belongs to a client.
>
> Copied over a file I compiled in x86 (command line) and it would not run
> on the M2 - Rosetta did not get invoked.
>
> Next installed the compiler (universal binary itself) and the installer
> for the compiler (x86) induced Rosetta to be installed.
>
> Once that was done then the x86 binary (compiled on old Mac) ran fine on
> the M2.  Nice.
>
> Next re-compiled the program on the M2 Mac and it of course ran fine.
>
>
>
> Then ... tried a simple multithreaded test program, ran fine.
>
> However, where the M2 can Handbrake the i7 iMac 2.5x to 1 or better,
> when I run a brute force search in 8 threads to find a, b, c where:
>
>                             ab + c = 2020
>                             a + bc = 2021
>
>           Single threaded test:  i7: 1.468s    M2: 2.369s  1:1.59
>
> Multithreaded test (8 threads):  i7: 0.387s    M2: 1.055s  1:2.73
>
> Multithreaded test (4 threads):  i7: 0.408s    M2: 1.159s  1:2.84
>
> Proving (no surprise really) that even a 2012 i7 (4 core, HT) @ 3.8GHz
> will beat Apple silicon on number bashing.

Hmm --- re-complied after updating the Mac Mini to Sonoma 14.0 ...

Single threaded test: i7: 1.468s M2: 1.740s 1:1.19

Multithreaded test (8 threads): i7: 0.387s M2: 0.376s 1:0.97

Multithreaded test (4 threads): i7: 0.408s M2: 0.585s 1:1.43

So the M2 is outdoing the i7 at 8 threads, not at 4.

Not sure what happened between Ventura and Sonoma - but seems to have
gotten out of the way of the processor.

-- “Markets can remain irrational longer than your can remain solvent.”
- John Maynard Keynes.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor