On benchmark.2.json (1.6M) One full parse: 1.2s ________________________________________________________ Executed in 1.30 secs fish external usr time 1210.81 millis 142.00 micros 1210.67 millis sys time 87.40 millis 756.00 micros 86.65 millis One full parse and a re-parse: ________________________________________________________ Executed in 2.40 secs fish external usr time 1.95 secs 154.00 micros 1.95 secs sys time 0.15 secs 763.00 micros 0.15 secs Re-parse takes 1.95 - 1.21 = 0.74s Memory usage of full-parse + re-parse: 2.17 real 2.00 user 0.16 sys 307269632 maximum resident set size 0 average shared memory size 0 average unshared data size 0 average unshared stack size 75035 page reclaims 0 page faults 0 swaps 0 block input operations 0 block output operations 0 messages sent 0 messages received 0 signals received 0 voluntary context switches 463 involuntary context switches 14674957821 instructions retired 7838514409 cycles elapsed 306745344 peak memory footprint 307MB for two trees that "shares internal structure". On xdisp.c (1.2M) One full paese: 0.139s ________________________________________________________ Executed in 478.23 millis fish external usr time 139.69 millis 134.00 micros 139.55 millis sys time 8.05 millis 829.00 micros 7.22 millis Full parse and re-parse: ________________________________________________________ Executed in 456.58 millis fish external usr time 148.23 millis 153.00 micros 148.08 millis sys time 9.08 millis 791.00 micros 8.29 millis 148 - 139 = 0.009s Memory usage of full-parse + re-parse: 0.16 real 0.15 user 0.00 sys 20131840 maximum resident set size 0 average shared memory size 0 average unshared data size 0 average unshared stack size 4932 page reclaims 0 page faults 0 swaps 0 block input operations 0 block output operations 0 messages sent 0 messages received 0 signals received 0 voluntary context switches 28 involuntary context switches 1070525817 instructions retired 581557699 cycles elapsed 19271680 peak memory footprint 20MB