MCPcopy Index your code
hub / github.com/nodejs/node / Main

Function Main

deps/v8/tools/run_perf.py:1156–1420  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

1154
1155
1156def Main(argv):
1157 parser = argparse.ArgumentParser(epilog="""example:
1158 ./run_perf.py --d8-path=out/Release/d8 $V8_PERF/benchmarks/JetStream/JetStream2.json
1159 """)
1160 parser.add_argument('--arch',
1161 help='The architecture to run tests for. Pass "auto" '
1162 'to auto-detect.', default='x64',
1163 choices=SUPPORTED_ARCHS + ['auto'])
1164 parser.add_argument('--buildbot',
1165 help='Deprecated',
1166 default=False, action='store_true')
1167 parser.add_argument('-d', '--device',
1168 help='The device ID to run Android tests on. If not '
1169 'given it will be autodetected.')
1170 parser.add_argument('--extra-flags',
1171 help='Additional flags to pass to the test executable',
1172 default='')
1173 parser.add_argument('--json-test-results',
1174 help='Path to a file for storing json results.')
1175 parser.add_argument('--json-test-results-secondary',
1176 help='Path to a file for storing json results from run '
1177 'without patch or for reference build run.')
1178 parser.add_argument('--outdir', help='Base directory with compile output',
1179 default='out')
1180 parser.add_argument('--outdir-secondary',
1181 help='Base directory with compile output without patch '
1182 'or for reference build')
1183 parser.add_argument(
1184 '--binary-override-path',
1185 '--d8-path',
1186 '--d8',
1187 metavar="D8_BINARY_PATH",
1188 help='JavaScript engine binary. By default, d8 under '
1189 'architecture-specific build dir. '
1190 'Not supported in conjunction with outdir-secondary.')
1191 parser.add_argument('--prioritize',
1192 help='Raise the priority to nice -20 for the '
1193 'benchmarking process.Requires Linux, schedtool, and '
1194 'sudo privileges.', default=False, action='store_true')
1195 parser.add_argument('--affinitize',
1196 help='Run benchmarking process on the specified core. '
1197 'For example: --affinitize=0 will run the benchmark '
1198 'process on core 0. --affinitize=3 will run the '
1199 'benchmark process on core 3. Requires Linux, schedtool, '
1200 'and sudo privileges.', default=None)
1201 parser.add_argument('--noaslr',
1202 help='Disable ASLR for the duration of the benchmarked '
1203 'process. Requires Linux and sudo privileges.',
1204 default=False, action='store_true')
1205 parser.add_argument('--cpu-governor',
1206 help='Set cpu governor to specified policy for the '
1207 'duration of the benchmarked process. Typical options: '
1208 '"powersave" for more stable results, or "performance" '
1209 'for shorter completion time of suite, with potentially '
1210 'more noise in results.')
1211 parser.add_argument(
1212 '--filter',
1213 help='Only run the benchmarks matching with this '

Callers 1

MainWrapperFunction · 0.70

Calls 15

AddErrorMethod · 0.95
AddRunnableDurationMethod · 0.95
WriteToFileMethod · 0.95
find_build_directoryFunction · 0.85
strFunction · 0.85
ResultTrackerClass · 0.85
DefaultSentinelClass · 0.85
BuildGraphConfigsFunction · 0.85
FlattenRunnablesFunction · 0.85
RunGeneratorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…