// Copyright 2019 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.
letconfig={numThings:4,// size of circular buffernumWorkers:4,// number of workersnumMessages:10000,// number of messages sent to each workerallocInterval:11,// interval for allocating new things per workertraceScript:false,// print the scripttraceAlloc:false,// print each allocation attempttraceIteration:10,// print diagnostics every so many iterationsabortOnFail:true,// kill worker if allocation failsAllocThing:functionAllocThing(id){returnnewSharedArrayBuffer(10000);},}RunWorkerPingTest(config);