Last active
September 2, 2017 09:37
-
-
Save rolftimmermans/91066783f44951fc1e1a70ed38a670fe to your computer and use it in GitHub Desktop.
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 zmq = require("./lib") | |
const client = zmq.socket("dealer") | |
client.connect("tcp://127.0.0.1:3456") | |
gc() | |
console.log(process.memoryUsage()) | |
for (let i = 0; i < 500; i++) { | |
const buf = Buffer.alloc(1024 * 1024) | |
client.send(buf) | |
} | |
gc() | |
console.log(process.memoryUsage()) | |
client.linger = 0 | |
client.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment