You can calculate RAM latency with frequency and CL, with a formula of:
(cas latency/ram transfer speed) x 2000 = latency in nanoseconds
Few examples:
(22/3200) x 2000 = 13.75 nanoseconds (DDR4)
(40/6400) x 2000 = 12.5 nanoseconds (DDR5)
(10/1866) x 2000 = 10.71 nanoseconds (DDR3)
(15/3000) x 2000 = 10 nanoseconds (DDR4)
(30/6000) x 2000 = 10 nanoseconds (DDR5)
With this, slower transfer speed (1866 MT/s) but also smaller CAS Latency (CL10) RAM, is overall quicker, than higher transfer speed (6400 MT/s) and bigger CAS Latency (CL40) RAM.