Re:When setting an environment variable gives you a 40x speedup
by arendtio on Sunday April 28, 2019 @05:33AM
(#19770202)
Sounds as if you don't trust my statement. Sure there is some variance, but when one is measured in seconds and the other in the tenth of a second it should be clear that it is not a coincidence...
But for completeness, I wrote a few loops which should answer your question:
I also tried dropping the cache on the NFS server but that didn't seem to have a major effect on the performance (probably because reading a 15k file index from a local disk doesn't take that long after all).
But for completeness, I wrote a few loops which should answer your question:
=NFS=
Normal: https://bin.disroot.org/?8967a0f34b26e512#aTYmbyESfeuqAXS802...
With exported Variable: https://bin.disroot.org/?c405d7aa74b50ee0#KverJYJEzNhct7CmdW...
-----
=Local=
Normal: https://bin.disroot.org/?b94e1d1f58e3edb7#tKszD/tjvwBwepJLun...
With exported Variable: https://bin.disroot.org/?d3ac83f1dff9e767#WVODjGnvL1QbOJdWPp...
I also tried dropping the cache on the NFS server but that didn't seem to have a major effect on the performance (probably because reading a 15k file index from a local disk doesn't take that long after all).