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)
mkdir -p $@
npx babel src --out-dir $@
npx syndicate-babel src --out-dir $@
clean:
rm -rf lib

View File

@ -23,7 +23,7 @@ const N = 10;
console.time('box-and-client-' + N.toString());
dataspace {
ground dataspace G {
spawn named 'box' {
field this.value = 0;
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());
dataspace {
ground dataspace G {
spawn {
on start {
<< 0;
@ -38,4 +38,6 @@ dataspace {
}
}
console.timeEnd('msgspeed-' + N.toString());
G.stopHandler = () => {
console.timeEnd('msgspeed-' + N.toString());
};