Skip to content

Instantly share code, notes, and snippets.

View yannick's full-sized avatar
🏗️

Yannick Koechlin yannick

🏗️
View GitHub Profile
.
./bin
./bin/cpp
./bin/gcc
./bin/gcc-ar
./bin/gcc-nm
./bin/gcc-ranlib
./bin/gcov
./bin/gdc
./bin/x86_64-apple-darwin14.4.0-gcc
/opt/gdc6/lib/gcc/x86_64-apple-darwin14.4.0/6.0.0/include/d/gcc/backtrace.di:393:16: error: module unwind is in file 'gcc/unwind.d' which cannot be read
import gcc.unwind;
^
import path[0] = /opt/gdc6/lib/gcc/x86_64-apple-darwin14.4.0/6.0.0/include/d
import path[1] = /Users/yannick/code/d/minidmp/submodules/vibe.d/source
import path[2] = /Users/yannick/.dub/packages/libevent-2.0.1_2.0.16
import path[3] = /Users/yannick/.dub/packages/openssl-1.1.4_1.0.1g
FAIL submodules/vibe.d/.dub/build/libevent-debug-posix.osx-x86_64-gdc_2066-84BDC0746ABFD5797C2AAB1A59D32F0A/ vibe-d staticLibrary
Error executing command build:
gdc failed with exit code 1.
#!/bin/zsh
cd dmd
git pull
cd src
make -f posix.mak -j5 MODEL=64
cd ../../druntime
git pull
make -f posix.mak -j5 MODEL=64 DMD=../dmd/src/dmd
cd ../phobos
git pull
======== Timer Is 3579545 Ticks/Sec, Times are in Microsecs ========
Num Calls Tree Time Func Time Per Call
97464 1556372278 1050637237 10779 @trusted bool msgpack.StreamingUnpacker.execute()
1 3481722952 633507879 633507879 _Dmain
3162944 526125821 525259945 166 _D7msgpack5Value15__T2asTHAyaAyaZ2asMFNdNeZ14__foreachbody1MFNaNeKS7msgpack5ValueKS7msgpack5ValueZi
3162976 341499556 341499556 107 _D7msgpack5Value6toHashMxFNbNeZ16__T7getHashTxAhZ7getHashFNbNfPxAhZm
97424 86275081 86275081 885 pure nothrow @trusted ulong object.reserve!(msgpack.Value).reserve(ref msgpack.Value[], ulong)
389680 609108274 82982452 212 pure @property @trusted immutable(char)[][immutable(char)[]] msgpack.Value.as!(immutable(char)[][immutable(char)[]]).as()
1160244 269984786 70715502 60 _D8campaign8Campaign7sfilterMFC4tlog4TLogZ32__T9__lambda2TC7sfilter7SFilterZ9__lambda2MFC7sfilter7SFilterZb
bytes allocated, type, function, file:line
47090081264 ubyte[] msgpack.StreamingUnpacker.InternalBuffer!().feed.expandBuffer source/msgpack.d:2017
2699550336 msgpack.StreamingUnpacker.Context.Container[] msgpack.StreamingUnpacker.execute.startContainer!"Map".startContainer source/msgpack.d:4855
1025891232 msgpack.Value[] msgpack.StreamingUnpacker.execute source/msgpack.d:5141
455959808 msgpack.StreamingUnpacker.Context.Container[] msgpack.StreamingUnpacker.execute.startContainer!"Array".startContainer source/msgpack.d:4855
313459168 tlog.TLog msgpack.Value.as!(TLog, ).as source/msgpack.d:3830
255587616 closure sfilter.QueryValInSfilter.sfilter source/sfilters.d:80
227980032 msgpack.StreamingUnpacker.Context.Container[] msgpack.StreamingUnpacker.initializeContext source/msgpack.d:5219
227803904 closure tfilter.DomainTFilter.tfilter source/tfilter.d:35
227803904 closure campaign.Campaign.tfilter source/campaign.d:82
import msgpackrpc.server;
import std.stdio;
class FooServer
{
ulong sum(ulong l, ulong r)
{
return l + r;
}
module mydbtest;
import ddb.postgres;
import std.stdio;
PGConnection conn;
auto getConn()
{
if (! conn)
{
config setup
strictcrlpolicy=no
charondebug="ike 1, knl 1, cfg 1"
conn %default
ikelifetime=8h
keylife=3h
rekeymargin=9m
keyingtries=1
mobike=no
config setup
charondebug="ike 2, knl 2, cfg 2, tls 2"
conn rw-base
leftsubnet=0.0.0.0/0
leftcert=serverCert.pem
leftid=vpn.example.com
rightsourceip=172.16.254.0/24
right=%any
# rightsendcert=always
@yannick
yannick / benchmark-commands.txt
Last active September 15, 2015 12:26 — forked from jkreps/benchmark-commands.txt
Kafka Benchmark Commands
Producer
Setup
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196