Skip to content

Commit

Permalink
fix: correct problems that benchmarking turned up
Browse files Browse the repository at this point in the history
  • Loading branch information
FUDCo committed Aug 7, 2020
1 parent ef4be52 commit 30f3f87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/SwingSet/src/kernel/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ export default function buildKernel(kernelEndowments) {
const vatSlot = makeVatRootObjectSlot();
kernelKeeper.getAllVatNames().forEach(name => {
const vatID = kernelKeeper.getVatIDForName(name);
// we happen to give _bootstrap to itself, because unit tests that
// we happen to give bootstrap to itself, because unit tests that
// don't have any other vats (bootstrap-only configs) then get a
// non-empty object as vatObj0s, since an empty object would be
// serialized as pass-by-presence. It wouldn't make much sense for the
Expand Down
4 changes: 2 additions & 2 deletions packages/swingset-runner/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,14 +502,14 @@ export async function main() {
let totalDeltaT = BigInt(0);
for (let i = 0; i < rounds; i += 1) {
const roundResult = controller.queueToVatExport(
'_bootstrap',
launchIndirectly ? 'launcher' : 'bootstrap',
'o+0',
'runBenchmarkRound',
args,
'ignore',
);
// eslint-disable-next-line no-await-in-loop
const [steps, deltaT] = await runBatch(0, false);
const [steps, deltaT] = await runBatch(0, true);
const status = roundResult.status();
if (status === 'pending') {
log(`benchmark round ${i + 1} did not finish`);
Expand Down

0 comments on commit 30f3f87

Please sign in to comment.