Skip to content

Instantly share code, notes, and snippets.

DEBUG|grep_regex::literal|/home/jack/.cargo/registry/src/github.com-1ecc6299db9ec823/grep-regex-0.1.1/src/literal.rs:58: literal prefixes detected: Literals { lits: [Complete(foobarbazquz)], limit_size: 250, limit_class: 10 }
DEBUG|globset|/home/jack/.cargo/registry/src/github.com-1ecc6299db9ec823/globset-0.4.2/src/lib.rs:429: built glob set; 0 literals, 1 basenames, 0 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 0 regexes
DEBUG|globset|/home/jack/.cargo/registry/src/github.com-1ecc6299db9ec823/globset-0.4.2/src/lib.rs:429: built glob set; 0 literals, 0 basenames, 8 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 0 regexes
DEBUG|globset|/home/jack/.cargo/registry/src/github.com-1ecc6299db9ec823/globset-0.4.2/src/lib.rs:429: built glob set; 0 literals, 0 basenames, 8 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 0 regexes
DEBUG|globset|/home/jack/.cargo/registry/src/github.com-1ecc6299db9ec823/globset-0.4.2/src/lib.rs:429: built glob set; 0 literals, 0 basenames, 8 extensi
@jackc
jackc / keybase.md
Created October 13, 2017 22:22
keybase.md

Keybase proof

I hereby claim:

  • I am jackc on github.
  • I am jackc (https://keybase.io/jackc) on keybase.
  • I have a public key ASCJ3ZvGRHLXdZNxAVb7lkOMnKQPrp1YSmGkgzzpXUu26Qo

To claim this, I am signing this object:

@jackc
jackc / ulysses.txt
Last active August 8, 2017 19:25
Ulysses by Alfred Lord Tennyson
It little profits that an idle king,
By this still hearth, among these barren crags,
Matched with an aged wife, I mete and dole
Unequal laws unto a savage race,
That hoard, and sleep, and feed, and know not me.
I cannot rest from travel; I will drink
Life to the lees. All times I have enjoyed
Greatly, have suffered greatly, both with those
That loved me, and alone; on shore, and when
Through scudding drifts the rainy Hyades
@jackc
jackc / results.txt
Created July 21, 2017 20:45
github.com/jackc/go_db_bench results
$ PGHOST=/var/run/postgresql go test -bench . -benchmem
BenchmarkPgxNativeSelectSingleShortString-8 100000 17873 ns/op 292 B/op 6 allocs/op
BenchmarkPgxStdlibSelectSingleShortString-8 100000 20602 ns/op 907 B/op 24 allocs/op
BenchmarkPgSelectSingleShortString-8 100000 17451 ns/op 120 B/op 8 allocs/op
BenchmarkPqSelectSingleShortString-8 100000 22604 ns/op 832 B/op 25 allocs/op
BenchmarkRawSelectSingleShortValue-8 100000 15735 ns/op 6 B/op 0 allocs/op
BenchmarkPgxNativeSelectSingleShortBytes-8 100000 17808 ns/op 314 B/op 7 allocs/op
BenchmarkPgxStdlibSelectSingleShortBytes-8 100000 20891 ns/op 933 B/op 25 allocs/op
BenchmarkPqSelectSingleShortBytes-8 50000 22005 ns/op 856 B/op 26 allocs/op
BenchmarkPgxNativeSelectSingleRow-8 100000 21577 ns/op 478 B/
@jackc
jackc / gist:d282f39e088b495fba3e
Created April 3, 2015 00:44
github.com/jackc/go_db_bench benchmark run
# Run on Core i7 4770, 16GB RAM, SSD
jack@edi:~/dev/go/src/github.com/jackc/go_db_bench$ uname -a
Linux edi 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
jack@edi:~/dev/go/src/github.com/jackc$ date
Thu Apr 2 19:39:07 CDT 2015
jack@edi:~/dev/go/src/github.com/jackc$ cd $GOPATH/src/github.com/jackc/pgx; git rev-parse HEAD
c45bb2cfa8cf801c75b374db7d2b0baa6da58f1c
jack@edi:~/dev/go/src/github.com/jackc/pgx$ cd $GOPATH/src/github.com/lib/pq; git rev-parse HEAD
@jackc
jackc / gist:8be78e1d5037898d75f5
Last active August 29, 2015 14:05
apache config for The Pithy Reader
<VirtualHost 162.243.221.160:80>
ServerName tpr.example.com
Redirect permanent / https://tpr.example.com/
</VirtualHost>
<VirtualHost 162.243.221.160:443>
ServerName tpr.example.com
SSLEngine On
SSLCertificateFile /etc/ssl/certs/tpr.example.com.crt
@jackc
jackc / gist:e70f17f6272917fdabc7
Created August 8, 2014 21:54
nginx config for The Pithy Reader
server {
listen 80;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name tpr.example.com;
root /usr/share/tpr/assets;
@jackc
jackc / gist:f8ebc4ced2d6989dd096
Last active August 29, 2015 14:04
go_db_benchmark results 7/16/2014 with go-pg
# Run on Core i7 4770, 16GB RAM, SSD
jack@edi:~/dev/go/src/github.com/jackc/go_db_bench$ uname -a
Linux edi 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
jack@edi:~/dev/go/src/github.com/jackc/go_db_bench$ GO_DB_BENCH_PG_HOST=/var/run/postgresql go test -test.bench=. -test.benchmem -test.benchtime=5s
testing: warning: no tests to run
PASS
BenchmarkPgxNativeSelectSingleValueUnprepared 100000 76628 ns/op 349 B/op 11 allocs/op
BenchmarkPgxStdlibSelectSingleValueUnprepared 100000 85550 ns/op 672 B/op 23 allocs/op
BenchmarkPgSelectSingleValueUnprepared 200000 56735 ns/op 218 B/op 9 allocs/op
@jackc
jackc / results.txt
Created June 21, 2014 14:51
Benchmark results of pgx (b2c1a14fcc) with Go 1.2.2 vs 1.3
jack@edi:~/dev/go/src/github.com/jackc/pgx$ go version
go version go1.2.2 linux/amd64
jack@edi:~/dev/go/src/github.com/jackc/pgx$ go test -test.bench=.
PASS
BenchmarkSelectRowSimpleNarrow 50000 72011 ns/op
BenchmarkSelectRowPreparedNarrow 50000 45556 ns/op
BenchmarkSelectRowsSimpleNarrow 10000 130469 ns/op
BenchmarkSelectRowsPreparedNarrow 20000 81028 ns/op
BenchmarkSelectValuePreparedNarrow 20000 82214 ns/op
BenchmarkSelectValueToPreparedNarrow 50000 64362 ns/op