-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VSC-6] Add benchmarking setup #1
base: master
Are you sure you want to change the base?
Conversation
4b2dae9
to
1c7fb9e
Compare
1c7fb9e
to
affb7f6
Compare
const key = | ||
keys.length === 1 | ||
? keys[0] | ||
: 'local'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is auto-formating I guess. Is it a standard one? Do you think that Dfinity developers will have the same setting?
loadingPackages = false; | ||
notifyWorkspace(); // Update virtual file system | ||
notifyDfxChange(); // Reload dfx.json | ||
connection.sendNotification('custom/initialized', {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see why this hack is needed, but please add some comments on why it's needed. Someone who is not in the context of the benchmarks could be surprised by this.
params: object, | ||
times: number, | ||
): Promise<number[]> { | ||
assert(times > 1, 'times must be greater than 0'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be times > 0
here and in other places accepting times
How to run:
<path_to_root>
should have some big motoko project e.g. game-launcher, power-equalizer which could be installed via: