Is it possible to calculate that using result from memtest?
No.
If not, how is that calculated in then?
The source code of the tools used to produce the results shown on https://www.7-cpu.com/ is publicly available, which can be found at https://www.7-cpu.com/utils.html. In particular, the MemLat tool is used to measure the access latency to each level of the memory hierarchy.
The mainstream method for measuring latency is using pointer chasing, where a linked list of 64-byte elements is created and each element is initialized to basically point to another randomly chosen element (to defeat hardware prefetchers). If the total size of the linked list fits in the L1 cache, then by iterating over the list a sufficiently large number of times, an L1 latency can be measured by dividing the total execution time by the number of elements accessed. This microbenchmark can be simplified by disabling hardware prefetchers so that there is no need for randomization. It's recommended to use 1GB pages (or at least 2MB pages) instead of 4KB pages to ensure that the whole list is allocated from a contiguous chunk of physical memory. Otherwise, there is a chance that multiple 4KB pages may be mapped to the same cache sets, causing conflict misses.
The reason that pointer chasing works is that current Intel and AMD processors don't employ value prediction techniques.
There is another way to measure latency. You can use RDTSC
/RDTSCP
around a single memory access instruction, essentially treating a single memory access as a short elapsed-time event. See: Memory latency measurement with time stamp counter.