Skip to content

Instantly share code, notes, and snippets.

@erights
erights / microses-to-microses-for-persistence
Last active Jan 13, 2017
microses-to-microses-for-persistence
View microses-to-microses-for-persistence
const makeAddr = (x => (y => x + y));
const wm = makeWeakMap();
const makeAddr = (x => {
const fn = (y => x + y);
wm.set(fn, {get x() { return x; });
return fn;
});
View keybase.md

Keybase proof

I hereby claim:

  • I am erights on github.
  • I am erights (https://keybase.io/erights) on keybase.
  • I have a public key ASCODEpcW0xkfFhbDrzWvcFouU6icOqlfAPKb0rhgo_4lgo

To claim this, I am signing this object:

@erights
erights / harden-perf-stats-better-order.txt
Created May 15, 2021
Output of #3105 Harden perf stats better order
View harden-perf-stats-better-order.txt
Output of https://github.com/Agoric/agoric-sdk/pull/3105
```
(1):xsnap(test-harden-perf)$ yarn test -sv test/test-harden-perf.js
yarn run v1.22.5
$ ava -sv test/test-harden-perf.js
time, BOTH, 10, nothing {
meterType: 'xs-meter-6',
compute: 12257,
@erights
erights / harden-perf-stats.txt
Last active May 15, 2021
Output of #3105 Harden perf stats
View harden-perf-stats.txt
Output of https://github.com/Agoric/agoric-sdk/pull/3105
A better order at https://gist.github.com/erights/0686e4c7c975bd9320834290f7bd3022
```
(1):xsnap(test-harden-perf)$ yarn test -sv test/test-harden-perf.js
yarn run v1.22.5
$ ava -sv test/test-harden-perf.js
time, BOTH, 10, nothing {
meterType: 'xs-meter-6',