You would think that the eMMC would run faster than a uSD card, but I have
never been able to measure a difference in program execution speed.
May depend upon the SD card (Class 10 is NOT always faster than class 4
when running a "fragmented" file system -- and especially not on a
journaling file system. Class 10 are rated for streaming a single long file
on freshly formatted [FAT] file system; Class 2/4/6 are small files, a la
photographs, with deletions).
From a post (of mine) on the R-Pi group... Running the "Raspberry Pi
Dramble microSD benchmarks".
curl
https://raw.githubusercontent.com/geerlingguy/raspberry-pi-dramble/master/setup/benchmarks/microsd-benchmarks.sh
benchmark.sh
"bdr-" is the "buffered disk read" from hdparm
"dd-" are, well, "dd"
The rest are "iozone" results.
The BBB has
SanDisk Edge 8GB Class 4 HC I8227DTJLT009
Not sure of the eMMC version
The R-Pi3B+ has
Kingston 16GB Class 10 HC I U1 SDC10G2/16GB N0581-002.A00LF
metric BBB (SD) RPi3B+ eMMC
bdr-MB 21.74 21.97 hdparm did not run (tried to access SD)*
dd-sec 89.4367 67.4917 63.8932
dd-MB 4.7 6.2 6.6
write 1652 250 1814
rewrite 2306 237 1888
read 6371 5814 5039
reread 6375 5798 5038
ranread 5364 5138 3562
ranwrite 1157 234 395
The Class 4 SanDisk, in the 1GHz single-core BBB readily beat the Class
10 Kingston in a 1.4GHz quad-core R-Pi3B+ in any meaningful test (the
Kingston only won out on the "bdr" and "dd" test cases, and the BBB eMMC
beat it on the "dd" test). {Note: I just reran on the SD card, and
"write"/"rewrite" only showed 405/284, which still beats the Class 10 --
suspect if I redid the test it might improve as the SD card may have
remnants getting reused)
Out of insanity, running on a BB-AI (16GB eMMC -- so LOTS of free
space). And SanDisk Ultra 16GB Class 10 HC I 6521DRDKA052
metric BBAI (SD) eMMC
bdr-MB 21.92 hdparm did not run (tried to access SD)*
dd-sec 70.0835 17.8329
dd-MB 6.0 23.5
write 2471 10096
rewrite 3344 11092
read 6753 22651
reread 6734 22644
ranread 5401 14757
ranwrite 1934 10919
... So on the BBAI, the eMMC appears to be much faster than that SD card
(note that the Class 10 16GB SanDisk in a BBAI isn't all that much faster
than the Class 4 8GB SanDisk in a BBB)
* I didn't try to edit the benchmark script file to have hdparm correctly
address the eMMC instead of the SD card.