Skip to content

Instantly share code, notes, and snippets.

View esote's full-sized avatar

Esote esote

View GitHub Profile
package main
import (
"encoding/json"
"fmt"
"io"
"log"
"net"
"os"
)
#include <assert.h>
#include <stdio.h>
#include <time.h>
#define NNN 2048
#define BENCH_COUNT 10
#define timespecsub(tsp, usp, vsp) \
do \
{ \
(vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
package transeq
import (
"bufio"
"bytes"
"context"
"encoding/binary"
"fmt"
"io"
"sync"