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:
package main | |
import "fmt" | |
func main() { | |
int64Slice := make([]int64, 0) | |
lastCap := -1 | |
for i := 0; i < 65536; i++ { |
<ul> | |
<% @user.properties[:favorite_colors].each do |c| %> | |
<li><%= c %></li> | |
<% end %> | |
</ul> |
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 |
# 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 |
server { | |
listen 80; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443; | |
server_name tpr.example.com; | |
root /usr/share/tpr/assets; |
<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 |
# 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 |
$ 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/ |
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 |
I hereby claim:
To claim this, I am signing this object: