Category Archives: Mac

Benchmarking AES-256, SHA256 and CRC-64 on Apple Silicon

Just a quick one – I needed some numbers for crypto and hashing performance on Apple Silicon so I vibe coded something quick and dirty to establish some, hoping it is useful for someone out there.. I only have access to two Apple Silicon CPUs a M2 Macbook Air, and a M4 Pro Macmini. All numbers are warmed up and averaged across multiple runs

SHA-256

Using CC_SHA256 which provides hardware SHA2 acceleration.

Block sizeM2 Mac Book Air (GiB/Sec)M4 Pro Macmini (GiB/Sec)
4 KiB2.332.97
8 KiB2.453.13
16 KiB2.513.18
32 KiB2.543.21
64 KiB2.553.26
128 KiB2.563.27
256 KiB2.573.28
512 KiB2.573.28
1 MiB2.573.27
2 MiB2.573.27
4 MiB2.573.27
8 MiB2.573.28
16 MiB2.563.28

AES-256

Via CCCrypt, using ECB mode.

Block sizeM2 Mac Book Air (GiB/Sec)M4 Pro Macmini (GiB/Sec)
4 KiB6.438.66
8 KiB7.7310.89
16 KiB8.5912.45
32 KiB9.1213.46
64 KiB9.2113.84
128 KiB9.2814.32
256 KiB9.3514.56
512 KiB9.3914.53
1 MiB9.4014.63
2 MiB9.4114.66
4 MiB9.4314.70
8 MiB9.4214.66
16 MiB9.3714.49

CRC-64 PMULL

Since there is no specific support for CRC in CCCrypt, this is just hand-rolled using the ARM NEON PMULL instruction to accelerate the calculation (without it performance is in the hundreds of megabytes per second). This is using the ECMA constant 0x42F0E1EBA9EA3693.

Block sizeM2 Mac Book Air (GiB/Sec)M4 Pro Macmini (GiB/Sec)
4 KiB58.8967.50
8 KiB49.9861.30
16 KiB53.5263.76
32 KiB51.1763.15
64 KiB50.7463.09
128 KiB50.7962.95
256 KiB50.3562.50
512 KiB50..3661.72
1 MiB50.2857.87
2 MiB50.3461.36
4 MiB50.2761.58
8 MiB50.2961.38
16 MiB49.6761.01

Conclusion

Both the M2 and M4 Pro perform excellently here, worth noting that there is not a huge generational difference evident.

Radius Thunder IV GX

I recently acquired a Nubus Radius Thunder IV GX 1600, and it’s running nicely in my Macintosh IIfx, which I keep around for poorly defined reasons.

The primary reason for writing this article was to state that it does work under System 6, or at least 6.0.8. Running 1600 x 1200 in 24 bit color in a operating system released at the same time as Windows 2.0 is certainly amusing. However I couldn’t get QuickDraw acceleration to work, so the desktop felt sluggish, with acres of 24bit pixels taking literal seconds to redraw. Looking at System 6 desktop at 1600 x 1200 really does remind you how much real-estate this used to be. Larger default fonts have blunted the vast feel of such resolutions.

Under System 7.5.5 on the same box it’s a different story, QuickDraw acceleration moves things along nicely on the desktop, though the Control Panel apps are a little quirky. PhotoShop 3.0 with the PhotoEngine plugin performs well, adding some MMX like zip to the standard filters.

Unfortunately it’s not all roses. My KVM setup or Mac->VGA adaptor seems to add a little ghosting at 1600x1200x65hz, and there is a bit of flicker from time to time, and sync-on-green issues seem to randomly kick in. And if I’m being totally honest, a lot of vintage software starts running into issues with a desktop that large, and most games chug badly.

 

Mac Pro 2008 Not Turning On: Power Supply Problems

Apple Mac Pro 2008

Just an aside, my trusty Mac Pro 2008 tower started behaving erratically a few weeks ago. Basically it wouldn’t power on, instead it would emit two faint relay type clicks a few seconds after pressing the power button. Leaving it unplugged overnight would occasionally result in it being boot-able the next morning.

Now I’ve been through a few spare parts on this particular computer – in particular graphics cards (it’s on its third). The overnight powerdown fix pointed me towards SMC problems, but replacing the motherboard battery didn’t resolve anything. Which lead me to the PSU. I tried using compressed air to blow the dust out of it in case it was some kind of thermal issue to no avail.

Continue reading