Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <string.h>
#include <softfloat.h>
const double mul = 1.0000001;
double doit(double in, long unsigned iteration) {
#pragma nounroll
for(long unsigned u = 0; u < iteration; ++u)
in *= mul;
@spoonincode
spoonincode / listping.pl
Last active August 26, 2018 16:13
sort p2p-peer-addresses by ping time
#!/usr/bin/env perl
# quick script to sort p2p nodes by RTT (via ping) and output in a format that
# can be copy pasta to config.ini
#
# Usage example:
# curl -s 'https://eosnodes.privex.io/?config=1' | listping.pl
use Net::Ping;
@spoonincode
spoonincode / eosiobench.md
Last active October 17, 2018 15:45
eosio benchmarking notes with txn_test_gen_plugin

This general procedure was used when doing pre-dawn 3.0 performance testing as mentioned in EOSIO/eos#2078.

Network layout: 2 nodes connected to each other on same box, 1 producer, 1 generator
Hardware: AMD Ryzen at 3.9Ghz
Software: Linux 4.15; eosio compiled with Clang6 -O3
Tested on Apr25 2018 on the DAWN-2018-04-23-ALPHA branch

Make an empty directory for our configs & data, mkdir ~/eos.data, and define a logging.json that doesn't print debug information (which occurs for each txn) to the console

cat << EOF > ~/eos.data/logging.json