Jack Christensen
73135865e7
Add benchmarks for NullX vs pointer to pointer
2015-09-08 12:08:20 -05:00
Jack Christensen
43dcd47a92
Move to Scan interface
...
Remove SelectValue
2014-07-05 18:23:19 -05:00
Jack Christensen
5b345e80e1
Remove SelectValueTo
...
Benchmarks revealed that it is no longer performant enough to pull
its own wait. Using go_db_bench to copy JSON results to HTTP responses
it was ~20% *slower* for ~4BK responses and less than 10% faster for
+1MB responses.
The the performance problem was in io.CopyN / io.Copy. io.Copy
allocates a 32KB buffer if it doesn't have io.WriterTo or io.ReaderFrom
available. This extra alloc on every request was more expensive than
just reading the result into a string and writing it out to the response
body.
Tests indicated that if MsgReader implemented a custom Copy that used a
shared buffer it might have a few percent performance advantage. But the
additional complexity is not worth the performance gain.
2014-07-05 09:32:47 -05:00
Jack Christensen
d30ef1b8b9
Replace SelectFunc with Query as core
2014-06-28 17:07:31 -05:00
Jack Christensen
b6ac3ef2b0
Rename Execute to Exec
2014-06-27 14:56:27 -05:00
Jack Christensen
b2c1a14fcc
Update github.com/JackC to github.com/jackc
2014-06-21 08:36:20 -05:00
Jack Christensen
73b5c73c1c
Do not share database connections between tests
2014-06-20 15:18:55 -05:00
Jack Christensen
6d6fb4561a
ConnPoolConfig embeds ConnConfig
2014-05-19 07:59:51 -05:00
Jack Christensen
9067b2d991
Rename ConnectionPoolOptions to ConnPoolConfig
2014-05-17 13:44:55 -05:00
Jack Christensen
f9a2501100
Rename ConnectionPool to ConnPool
2014-05-17 13:40:50 -05:00
Jack Christensen
1ff653ae15
Rename ConnectionParameters to ConnConfig
2014-05-17 13:38:13 -05:00
Jack Christensen
4eb597d20b
Rename pgx.Connection to pgx.Conn
2014-05-17 13:11:30 -05:00
Jack Christensen
75ca2b3b1c
Remove unnecessary read
...
* Add benchmark for SelectValueTo
2014-04-25 13:49:36 -06:00
Jack Christensen
622ff142ca
Add error to *ConnectionPool.Acquire return
2013-07-25 07:52:05 -05:00
Jack Christensen
7450854d50
Add benchmark of ConnectionPool Acquire/Release
2013-07-25 07:34:38 -05:00
Jack Christensen
36904168b2
Don't panic!
2013-07-20 13:07:30 -05:00
Jack Christensen
9e321af35c
Add binary encoding for timestamptz
2013-07-19 14:40:07 -05:00
Jack Christensen
9640dc91e4
Make getSharedConnection private again
2013-07-16 08:32:49 -05:00
Jack Christensen
bae49077ce
Use pgx_test package for tests
2013-07-16 08:29:59 -05:00
Jack Christensen
1af652ce07
More docs and make ValueTranscoder visible.
2013-07-15 17:45:20 -05:00
Jack Christensen
df0a537f59
Make Oid public
2013-07-15 08:28:33 -05:00
Jack Christensen
98d4ce4c09
DRYed test and benchmark
2013-07-13 19:23:13 -05:00
Jack Christensen
8afcde41f2
Start factoring test helpers out
2013-07-13 17:29:24 -04:00
Jack Christensen
c69e638f68
Added (remove|restore)BinaryEncoders
...
Makes it so the oid doesn't have to be hard coded into text
benchmarks that disable binary encoding.
2013-07-12 18:21:40 -04:00
Jack Christensen
53da3bb789
Use binary encoding for bool
2013-07-12 18:02:23 -04:00
Jack Christensen
8c7ea78485
Add binary decoding for floats
2013-07-11 12:42:17 -04:00
Jack Christensen
a1c24661cd
Added binary encoding for int2
2013-07-08 18:11:10 -05:00
Jack Christensen
85ffca4fe0
Added int8 binary decoding
...
Refactored benchmarks
2013-07-08 17:56:14 -05:00
Jack Christensen
b8be47feb8
Add basic benchmarks
2013-07-08 15:37:46 -05:00