Someone tweeted that the new iPad Pro 2018 with A12X SoC and 6GB DRAM looped through 1000 iterations of base64 encoding and decoding a 3.6MB jpg file in ~45 secs.
https://twitter.com/viticci/status/1061443135975407616
Also, Apple claim that the iPad Pro 2018 is faster than 92% of portable PCs sold in the last twelve months but that is sort of vague so lets make it easy and compare it with a ten year old Intel Core 2 Duo P8400 2.26GHz laptop with 4GB DRAM. The laptop should lose spectacularly, right?
iOS 12 Shortcuts batch translated to bash for MacOS, Linux, etc.
But more likely it's only doing base64 encoding only which is equivalent to:
3.6MB jpg test file (renamed to test.jpg):
https://www.camerafv5.com/files/photos/raw1/calella2.jpg
Completed 1000 loop of both base64 encoding and decoding in 52 secs (1st result) while base64 encoding only is 17s (2nd result).
Only potential issue with the original iOS Shortcuts batch test is in the second part where it's base64 decoding an unencoded file that will likely result in an 'invalid file' so it's not doing any work. If you notice in the screenshot the test.jpg file becomes larger when base64 encoded to encoded.jpg file.
This is where we need someone with the new iPad Pro 2018 6GB DRAM (4GB DRAM crashes according to tweet) to recreate the Shortcuts batch but only time the base64 decoding part to make sure it's not near zero meaning it's not doing anything.
So, best case the new iPad Pro 2018 is slightly faster than a ten year old laptop and worst case, if the original testing is flawed, it's less than half as fast (compared to 2nd result in screenshot). Run the bash command on your MacBook and/or iMac and share your results.
https://twitter.com/viticci/status/1061443135975407616
Also, Apple claim that the iPad Pro 2018 is faster than 92% of portable PCs sold in the last twelve months but that is sort of vague so lets make it easy and compare it with a ten year old Intel Core 2 Duo P8400 2.26GHz laptop with 4GB DRAM. The laptop should lose spectacularly, right?
iOS 12 Shortcuts batch translated to bash for MacOS, Linux, etc.
time (for i in {1..1000}; do base64 test.jpg > /dev/null; base64 -d encoded.jpg > /dev/null; done)
But more likely it's only doing base64 encoding only which is equivalent to:
time (for i in {1..1000}; do base64 test.jpg > /dev/null; done)
3.6MB jpg test file (renamed to test.jpg):
https://www.camerafv5.com/files/photos/raw1/calella2.jpg
Completed 1000 loop of both base64 encoding and decoding in 52 secs (1st result) while base64 encoding only is 17s (2nd result).
Only potential issue with the original iOS Shortcuts batch test is in the second part where it's base64 decoding an unencoded file that will likely result in an 'invalid file' so it's not doing any work. If you notice in the screenshot the test.jpg file becomes larger when base64 encoded to encoded.jpg file.
This is where we need someone with the new iPad Pro 2018 6GB DRAM (4GB DRAM crashes according to tweet) to recreate the Shortcuts batch but only time the base64 decoding part to make sure it's not near zero meaning it's not doing anything.
So, best case the new iPad Pro 2018 is slightly faster than a ten year old laptop and worst case, if the original testing is flawed, it's less than half as fast (compared to 2nd result in screenshot). Run the bash command on your MacBook and/or iMac and share your results.
Last edited: