File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change 11import { checkV8Flags } from "./introspection" ;
22import { MongoMeasurement } from "./mongoMeasurement" ;
33import native_core from "./native_core" ;
4- import { initOptimization } from "./optimization" ;
54
65declare const __VERSION__ : string ;
76
@@ -12,7 +11,6 @@ export const isBound = native_core.isBound;
1211export const mongoMeasurement = new MongoMeasurement ( ) ;
1312
1413export const setupCore = ( ) => {
15- initOptimization ( ) ;
1614 native_core . Measurement . stopInstrumentation (
1715 `Metadata: codspeed-node ${ __VERSION__ } `
1816 ) ;
Original file line number Diff line number Diff line change 1- export const initOptimization = ( ) => {
2- // eslint-disable-next-line @typescript-eslint/no-var-requires
3- require ( "v8" ) . setFlagsFromString ( "--allow-natives-syntax" ) ;
4- } ;
5-
61export const optimizeFunction = async ( fn : CallableFunction ) => {
72 // Source: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#optimization-killers
83 // a total of 7 calls seems to be the sweet spot
You can’t perform that action at this time.
0 commit comments