Performance Comparison of handling empty functions #352
Luna-Klatzer
started this conversation in
General
Replies: 1 comment
-
This a benchmark for testing which method is better for handling when an AST node in the compiler implementation has no semantic analysis or type-checking needed e.g. the functions would be empty since nothing needs to be checked. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Overview
Comparison of the performance between various methods of handling empty methods:
Promise.resolve(undefined
to not create an actual async promise.Sample Script
Results
Tested on Firefox 108 - Performance depends on the system, which means the values should be used as comparison only between themselves (On the same system and browser).
Beta Was this translation helpful? Give feedback.
All reactions