Skip to content

Instantly share code, notes, and snippets.

View test_malloc.c
/* Test malloc and free performance over time for a specified allocation block size and total. */
#include <iostream>
#include <chrono>
#include <thread>
#include <cstring>
#if 0 // test HeapCompact (1/2)
#ifdef _WIN32
#include <Windows.h>
kaetemi / gist:77f675d6f20ac7d44aeede4e6b34b76d
Last active Oct 23, 2017
Proposed API usage for NeL Network Message Node.js implementation
View gist:77f675d6f20ac7d44aeede4e6b34b76d
let nnmessage = require('nnmessage');
let server = nnmessage.createServer();
server.onConnected(function(connection) {
// called whe new client connects