Hello, I'm developer of
typia and running a benchmark program about runtime validators. During the benchmark development, I've experience amazing happen that, if I repeat same function repeatedly with same parameter value, typia became relatively about 8x times faster than slowest (class-validator).
------------------------------------------
After seeing such difference, I'm wonder whethering that v8 engine caches returned value from a function or not. I can't sure what is the reason why. Is it caused by costs of array iteration? Or caused caching optimization from v8 engine?
Anyone who can explain and teach me? Please inform me the reason.