Compilation script fixes; asynchronous ground dataspace

This commit is contained in:
Tony Garnock-Jones 2018-11-01 16:58:14 +00:00
parent 3dc00a3c2d
commit b0ea9754c2
3 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,6 @@
lib: $(wildcard src/*.js) lib: $(wildcard src/*.js)
mkdir -p $@ mkdir -p $@
npx babel src --out-dir $@ npx syndicate-babel src --out-dir $@
clean: clean:
rm -rf lib rm -rf lib

View File

@ -23,7 +23,7 @@ const N = 10;
console.time('box-and-client-' + N.toString()); console.time('box-and-client-' + N.toString());
dataspace { ground dataspace G {
spawn named 'box' { spawn named 'box' {
field this.value = 0; field this.value = 0;
assert Protocol.BoxState(this.value); assert Protocol.BoxState(this.value);
@ -42,4 +42,6 @@ dataspace {
} }
} }
console.timeEnd('box-and-client-' + N.toString()); G.stopHandler = () => {
console.timeEnd('box-and-client-' + N.toString());
};

View File

@ -23,7 +23,7 @@ const N = 100000;
console.time('msgspeed-' + N.toString()); console.time('msgspeed-' + N.toString());
dataspace { ground dataspace G {
spawn { spawn {
on start { on start {
<< 0; << 0;
@ -38,4 +38,6 @@ dataspace {
} }
} }
console.timeEnd('msgspeed-' + N.toString()); G.stopHandler = () => {
console.timeEnd('msgspeed-' + N.toString());
};