Re:Why I Don't Want to Learn Go
by adgar on Monday March 19, 2012 @01:19PM
(#3724958)
I'm a bit concerned about at least one measurement:
Read 16-byte file
100000 iterations
2.1s for 100k reads
21219.3ns per read
This appears to be testing... the filesystem cache? It's certainly not seeking on a rotational disk, "SSD" isn't on the page, so... not sure where he's getting 21 microsecond reads from.
Re:Why I Don't Want to Learn Go
by acdha on Monday March 19, 2012 @05:46PM
(#3726428)
It's measuring the overhead of a set of open()/read()/close() syscalls - exactly the situation where you would want to use the cache to avoid physical disk latencies swamping the language variation.
Read 16-byte file 100000 iterations 2.1s for 100k reads 21219.3ns per read
This appears to be testing... the filesystem cache? It's certainly not seeking on a rotational disk, "SSD" isn't on the page, so... not sure where he's getting 21 microsecond reads from.