Macs in Chemistry

Insanely great science


Comparing Python on a M1 MacBook Pro Max with Intel MacBookPro (2016)

Python is probably the most widely used programming language in Cheminformatics at the moment and several readers have asked me to run a couple of benchmark tests. I've already tested a Jupyter notebook and that worked fine, the RDKit comparison also includes a fair amount of python code. Fortunately there are a few benchmarks that are well documented here

I used a couple of the benchmarks using the python implementation


Plot the Mandelbrot set [-1.5-i,0.5+i] on an N-by-N bitmap. Write output byte-by-byte in portable bitmap format.

Command used

time python -OO 16000


Model the orbits of Jovian planets, using the same simple symplectic-integrator.

Command used

time python -OO 50000000


Command used

time python -OO 21

The timings are shown in the table below.

TestIntel timeM1 max time
Mandelbrot 2 min 44s 34s
N-body7 min 17s 3 min 57s
BinaryTrees 46 sec 12 secs

List of tools tested

Last update 13 January 2022