mirror of https://github.com/VinGarcia/ksql.git
Minor improvement on README file
parent
cb3d8eb572
commit
40215d8099
|
@ -508,9 +508,12 @@ read the example tests available on our [example service](./examples/example_ser
|
||||||
|
|
||||||
### Benchmark Comparison
|
### Benchmark Comparison
|
||||||
|
|
||||||
The benchmark is very good, the code is, in practical terms, as fast as sqlx.
|
The results of the benchmark are good:
|
||||||
|
they show that ksql is in practical terms,
|
||||||
|
as fast as sqlx which was our goal from the start.
|
||||||
|
|
||||||
To understand the benchmark below you must know
|
To understand the benchmark below you must know
|
||||||
|
that all tests are performed using Postgres 12.1 and
|
||||||
that we are comparing the following tools:
|
that we are comparing the following tools:
|
||||||
|
|
||||||
- ksql using the adapter that wraps database/sql
|
- ksql using the adapter that wraps database/sql
|
||||||
|
@ -520,6 +523,8 @@ that we are comparing the following tools:
|
||||||
- pgx (with pgxpool)
|
- pgx (with pgxpool)
|
||||||
- gorm
|
- gorm
|
||||||
|
|
||||||
|
For each of these tools we are running 3 different queries:
|
||||||
|
|
||||||
The `insert-one` query looks like:
|
The `insert-one` query looks like:
|
||||||
|
|
||||||
`INSERT INTO users (name, age) VALUES ($1, $2) RETURNING id`
|
`INSERT INTO users (name, age) VALUES ($1, $2) RETURNING id`
|
||||||
|
|
Loading…
Reference in New Issue