Okay, I see. I have hard to understand why this is but I know far too little about the details to know.Its actually not caching but network'ed IO that is slow, so yes anything remote is slower than the same operation locally.
Now why its so much slower in TNC vs FN is an interesting question - I'd recommend to open a ticket about that.
They can tell you why and if its to be expected or what could be done.
I am sure this is of interest for a wide variety of users...
Thought: Has the driver changed for the NIC?
--Edit--
Thought 2: Could there be additional tunables between FN and TN?
So I made some further tests on the TrueNAS vs FreeNAS performance:
1. I installed TrueNAS 12.0-U1.1 and imported the pools i created in FreeNAS-11.3-U5 and got similar performance as in FreeNAS (~570 MB/s)
2. I upgraded the pools, still get about the same (~570 MB/s)
3. I destroyed the pools, recreated them in TrueNAS, recreated the test files, and now it's back to being slower. (~320 MB/s)
I will look into creating a ticket for this.