Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
benchmark: Remove top level platform specific imports, and add todos (#…
…16112) ## Description A user of benchmark ran into issue when updating to 0.47 because of the unconditional use of v8 and perf_hooks in memoryTestRunner.ts. This removes the use of perf_hooks and instead uses the timer written for performance testing which is more portable. It also moves the import of v8 into where its used so its only imported when actually taking measurements and not statically or in correctness mode. Lastly adds some TODOs regarding issues I noticed while making these changes which should be addressed in the future but are unrelated to the changes made here,
- Loading branch information
1 parent
3cb7cef
commit 50bf078
Showing
1 changed file
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters