14年前(2007 年)的笔记本的 HDD 和插在 USB 口的 HDD 移动硬盘的读写速度测试结果

HDD:
$ dd if=/root/tmp.data of=/dev/null bs=1024k
4096+0 records in
4096+0 records out
4294967296 bytes transferred in 190.078495 secs (22595756 bytes/sec)
$ dd if=/dev/random of=/root/tmp.data bs=1024k count=4096
4096+0 records in
4096+0 records out
4294967296 bytes transferred in 200.241032 secs (21448987 bytes/sec)

Read speed: 21.54 Megabyte per second
Write speed: 20.45 Megabyte per second

HDD @ USB:
$ dd if=/dev/random of=/tank/tmp.data bs=1024k count=1024
1024+0 records in
1024+0 records out
1073741824 bytes transferred in 100.581317 secs (10675361 bytes/sec)
$ dd if=/tank/tmp.data of=/dev/null
2097152+0 records in
2097152+0 records out
1073741824 bytes transferred in 43.525504 secs (24669257 bytes/sec)

Read speed: 23.52 Megabyte per second
Write speed: 10.18 Megabyte per second

#dd, #hdd, #usb

RAM disk speed test result

Memory Slots:

  ECC:	Disabled
  Upgradeable Memory:	No

BANK 0/ChannelA-DIMM0:

  Size:	32 GB
  Type:	DDR4
  Speed:	2667 MHz
  Status:	OK
  Manufacturer:	Micron
  Part Number:	-
  Serial Number:	-

BANK 2/ChannelB-DIMM0:

  Size:	32 GB
  Type:	DDR4
  Speed:	2667 MHz
  Status:	OK
  Manufacturer:	Micron
  Part Number:	-
  Serial Number:	-

$ diskutil erasevolume HFS+ 'RAM_Disk' `hdiutil attach -nobrowse -nomount ram://67108864`
Started erase on disk4
Unmounting disk
Erasing
Initialized /dev/rdisk4 as a 32 GB case-insensitive HFS Plus volume
Mounting disk
Finished erase on disk4 (RAM_Disk)

$ dd if=/dev/random of=/Volumes/RAM_Disk/tmp.data bs=1024k count=16384
16384+0 records in
16384+0 records out
17179869184 bytes transferred in 54.670080 secs (314246279 bytes/sec)

$ dd if=/Volumes/RAM_Disk/tmp.data of=/dev/null bs=1024k
16384+0 records in
16384+0 records out
17179869184 bytes transferred in 5.130549 secs (3348544052 bytes/sec)

$ hdiutil detach /dev/disk4
"disk4" ejected.

Read speed: 3.1185 Gigabyte per second
Write speed: 299.6886 Megabyte per second

#dd

#ddr4, #ram-disk

SSD with USB 3.1 read/write speed test result

USB 3.1 Bus:

  Host Controller Driver:	AppleUSBXHCITR
  PCI Device ID:	0x15ec 
  PCI Revision ID:	0x0006 
  PCI Vendor ID:	0x8086 
  Bus Number:	0x00 

VLI Product String:

  Product ID:	0x0715
  Vendor ID:	0x2109  (VIA Labs, Inc.)
  Version:	1.31
  Serial Number:	000000123ADA
  Speed:	Up to 10 Gb/s
  Manufacturer:	VLI Manufacture String
  Location ID:	0x00200000 / 1
  Current Available (mA):	900
  Current Required (mA):	896
  Extra Operating Current (mA):	0
  Media:
SL500 2TB:
  Capacity:	2 TB (2,000,398,934,016 bytes)
  Removable Media:	No
  BSD Name:	disk2
  Logical Unit:	0
  Partition Map Type:	GPT (GUID Partition Table)
  S.M.A.R.T. status:	Verified
  USB Interface:	0
  Volumes:
EFI:
  Capacity:	209.7 MB (209,715,200 bytes)
  File System:	MS-DOS FAT32
  BSD Name:	disk2s1
  Content:	EFI
  Volume UUID:	0E239BC6-F960-3107-89CF-1C97F78BB46B
disk2s2:
  Capacity:	2 TB (2,000,189,177,856 bytes)
  BSD Name:	disk2s2
  Content:	Apple_APFS

Colorful SL500 2TB Media:

  Free:	1.43 TB (1,431,453,413,376 bytes)
  Capacity:	2 TB (2,000,189,177,856 bytes)
  Mount Point:	/Volumes/Colorful SL500 2TB Media
  File System:	Case-sensitive APFS
  Writable:	Yes
  Ignore Ownership:	Yes
  BSD Name:	disk3s1
  Volume UUID:	E7369016-1660-4A22-B537-2412DD8CE2F0
  Physical Drive:
  Device Name:	SL500 2TB
  Media Name:	AppleAPFSMedia
  Protocol:	USB
  Internal:	No
  Partition Map Type:	Unknown

with ORICO TYPE-C USB 3.1 Transparent 2.5 inch Hard Drive Enclosure  [2139C3-R1.1]
$ dd if=/dev/random of=./tmp.data bs=1024k count=32768
32768+0 records in
32768+0 records out
34359738368 bytes transferred in 729.521762 secs (47098990 bytes/sec)
$ dd if=./tmp.data of=/dev/null bs=1024k
32768+0 records in
32768+0 records out
34359738368 bytes transferred in 152.150119 secs (225827877 bytes/sec)

Read speed: 215.3662462234497070 Megabyte per second
Write speed: 44.9170970916748046 Megabyte per second

#dd, #ssd, #usb