tqchen commented on PR #744:
URL: https://github.com/apache/tvm-ffi/pull/744#issuecomment-5548529161

   ## Speed
   
   Standalone harness mirroring the TIR node shapes, `-O3` for library and 
benchmark, pinned. Baseline and candidate libraries built identically; the two 
binaries run **interleaved over 11 pairs**, medians in ns/node.
   
   | | before | after | |
   |---|---:|---:|---:|
   | no link matches | 14.12 | 13.80 | −2.3% |
   | link matches, no rebuild | 21.37 | 20.79 | −2.7% |
   | link matches, node replaced | 22.79 | 21.22 | **−6.9%** |
   
   The first row is the one that generalizes: it is what a node runs when no 
link matches, which is most nodes on a real tree. This fixture matches 4 nodes 
of 17, a far higher rate than a realistic traversal.
   
   Two other candidates for the same path were measured and dropped rather than 
shipped on reasoning: a `TVM_FFI_UNSAFE_ASSUME` that the untouched 
`Expected<Any>` still holds None produced byte-identical assembly, and making 
the var-remap map allocation lazy was worth about 0.15 ns/node.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to