Open gibson042 opened 6 months ago
We frequently have a need to measure the performance of JavaScript snippets and code blocks in V8 or XS, and sometimes in both. This can serve purposes as simple as comparing alternative implementations of a function (e.g., str.replace(/^#/, "") vs. str.startsWith("#") ? str.slice(1) : str), diagnosing time complexity issues, and even analyzing behavior of agoric-sdk contracts and vats.
str.replace(/^#/, "")
str.startsWith("#") ? str.slice(1) : str
Create an esbench tool that wraps eshost for testing across ECMAScript implementations.
esbench
eshost
n/a
The tool should provide some way to limit execution time.
TBD
What is the Problem Being Solved?
We frequently have a need to measure the performance of JavaScript snippets and code blocks in V8 or XS, and sometimes in both. This can serve purposes as simple as comparing alternative implementations of a function (e.g.,
str.replace(/^#/, "")
vs.str.startsWith("#") ? str.slice(1) : str
), diagnosing time complexity issues, and even analyzing behavior of agoric-sdk contracts and vats.Description of the Design
Create an
esbench
tool that wrapseshost
for testing across ECMAScript implementations.Security Considerations
n/a
Scaling Considerations
The tool should provide some way to limit execution time.
Test Plan
TBD
Compatibility Considerations
n/a
Upgrade Considerations
n/a