They are still in the ns for latency, although they are higher then regular DRAM. However most systems allow for mixed setups with some DRAM and some Optane DIMMs, at least the servers have. So it might be possible to have half of the DIMMs be faster DRAM and the others be larger size Optane DIMMs allowing for storage that has vastly higher bandwidth than NVMe and vastly faster latency than NVMe (average is 20ms)
I'm not sure where you got 20 ms for an average NVMe, but that ain't right. Maybe you meant 20
microseconds, but 20 ms is hard disk territory. 20 us is in the ballpark, for SSD reads.
Here's a fairly recent measurement of SATA drive IOPS:
Source:
https://www.tomshardware.com/reviews/crucial-mx500-ssd-review-nand,5390-3.html
So, if you just take the reciprocal of the QD1 IOPS, then you get 83 to 183 usec. However, that includes the time to read & transfer the whole 4k of data, as well as potentially traversing the entire OS I/O stack & probably also the filesystem driver. I don't know what the standard is for measuring read latency, but it might be less.
Here's the same measurement of high-end NVMe drives, from the Intel 905P review:
Source:
https://www.tomshardware.com/reviews/intel-optane-ssd-905p,5600-2.html
Again, the same math for the 905P indicates 14.8 usec for the fastest Optane NVMe and 58.1 to 98.5 usec for the NAND-based NVMe drives.
As for how latencies and bandwidth compare between Optane DIMMs and DDR4, there's a handy table in this article:
https://www.tomshardware.com/news/intel-optane-dimm-pricing-performance,39007.html
According to that, the
bandwidth of a single Optane DIMM is roughly in the same ballpark as some of the high-end PCIe 4.0 NVMe drives - not
vastly higher. AFAIK, Intel CPUs only support up to two channels, meaning your max is only double that.
And
latency is about 100x lower, for Optane DIMMs vs NVMe. However, I'm certain the measurement methodology for the DIMMs is just like a memory access. They can't be going through the OS, any filesystem, or even the kernel. And it's not going to be 4k, either. If you would measure the 905P in the same way, maybe the difference could be brought to within 1 order of magnitude.