This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await kuzzle.realtime.publish('index', 'collection', { content: 'liia meh ry' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await kuzzle.realtime.publish('index', 'collection', { content: 'liia meh ry' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "./doxbee-sequential/promises-native-async-await.js ./doxbee-sequential/promises-ecmascript6-native.js ./doxbee-sequential/promises-bluebird.js" | sed -e 's|\.js||' | xargs node ./performance.js --p 1 --t 1 --n 10000 | |
file time(ms) memory(MB) | |
promises-bluebird.js 260 44.71 | |
promises-native-async-await 322 68.64 | |
promises-ecmascript6-native.js 332 73.80 | |
Platform info: | |
Linux 4.10.0-38-generic x64 | |
Node.JS 10.16.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ echo "./doxbee-sequential/promises-ecmascript6-native.js ./doxbee-sequential/promises-bluebird.js" | sed -e 's|\.js||' | xargs node ./performance.js --p 1 --t 1 --n 10000 | |
file time(ms) memory(MB) | |
promises-bluebird.js 227 45.75 | |
promises-ecmascript6-native 945 145.09 | |
Platform info: | |
Linux 4.10.0-38-generic x64 | |
Node.JS 6.17.1 | |
V8 5.1.281.111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "./doxbee-sequential/promises-native-async-await.js ./doxbee-sequential/promises-ecmascript6-native.js ./doxbee-sequential/promises-bluebird.js" | sed -e 's|\.js||' | xargs node ./performance.js --p 1 --t 1 --n 10000 | |
file time(ms) memory(MB) | |
promises-bluebird.js 260 44.71 | |
promises-native-async-await 322 68.64 | |
promises-ecmascript6-native.js 332 73.80 | |
Platform info: | |
Linux 4.10.0-38-generic x64 | |
Node.JS 10.16.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "./doxbee-sequential/promises-native-async-await.js ./doxbee-sequential/promises-ecmascript6-native.js ./doxbee-sequential/promises-bluebird.js" | sed -e 's|\.js||' | xargs node ./performance.js --p 1 --t 1 --n 10000 | |
file time(ms) memory(MB) | |
promises-bluebird.js 279 49.20 | |
promises-native-async-await 280 53.22 | |
promises-ecmascript6-native.js 318 65.82 | |
Platform info: | |
Linux 4.10.0-38-generic x64 | |
Node.JS 12.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const filters = { | |
equals: { containerId: 'liia-1209' } | |
}; | |
await kuzzle.realtime.subscribe('containers', 'positions', filters, notification => { | |
// Only notifications about the 'liia-1209' container | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const filters = { | |
geoPolygon: { | |
location: { | |
points: [ | |
[2.35107421875, 51.0275763378024], | |
[-4.89990234375, 48.472921272487824], | |
[-1.6259765625, 43.48481212891603], | |
[3.01025390625, 42.48830197960227], | |
[7.62451171875, 43.77109381775651], | |
[8.173828125, 48.980216985374994], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.kuzzle.sdk.core.Kuzzle; | |
import io.kuzzle.sdk.core.Options; | |
Options options = new Options(); | |
options | |
.setAutoReconnect(true), | |
.setPort(7512); | |
Kuzzle kuzzle = new Kuzzle("106.75.172.117", options, new ResponseListener<Void>() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Benchmark = require('benchmark') | |
const suite = new Benchmark.Suite | |
const array = []; | |
for (let i = 0; i < 1000; i++) { | |
array.push(i); | |
} |