Skip to content

Commit

Permalink
update v8ForceOptimization docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Feb 12, 2017
1 parent 409e2fc commit b88d113
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ it returns to accomplish what they need. This function reports timing
data to the parent process (usually created by running `compare.js`, `run.js` or
`scatter.js`).

### v8ForceOptimization(method)
### v8ForceOptimization(method[, ...args])

Force V8 to optimize the function with the native function
Force V8 to mark the `method` for optimization with the native function
`%OptimizeFunctionOnNextCall()` and return the optimization status
after that.

It is used to prevent the benchmark from getting disrupted
by the optimizer kicking in halfway through. However, this could result in a
less effective optimization, so it should be used with caution.
It can be used to prevent the benchmark from getting disrupted by the optimizer
kicking in halfway through. However, this could result in a less effective
optimization. In general, only use it if you know what it actually does.

0 comments on commit b88d113

Please sign in to comment.