Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upPG Performance #859
Comments
This comment has been minimized.
|
You claim that it is Diesel which is slow, but give nothing to use as a baseline for comparison. Writes are much slower than reads in any RBDMS, including PG. I doubt you're seeing anything other than the performance of PG itself. Can you provide more specific details about why you think it is Diesel that is causing the slowdown here? |
This comment has been minimized.
u2
commented
Apr 16, 2017
•
while excluding establishing connection, the tps is about 14607.259483. but when I change to one connection and one thread:
I am a bit confused, why it's slower than diesel. The cargo bench is not in one thread? |
This comment has been minimized.
This comment has been minimized.
u2
commented
Apr 28, 2017
|
Thank you. |
u2
closed this
Apr 28, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
u2 commentedApr 14, 2017
•
edited
Hi, I have used diesel in my development.But I find that the db inserting and updating is a bit slow.Here is my benchmark.
My laptop is:
MacBook Pro (Retina, 13-inch, Early 2015)
CPU: 2.7 GHz Intel Core i5
RAM: 8 GB 1867 MHz DDR3
Disk: Macintosh HD (ssd)
Rust:
rustc 1.18.0-nightly (50c186419 2017-04-06)
diesel:
diesel 0.12.0
postgres:
postgres (PostgreSQL) 9.6.2
RUST_TEST_THREADS=1 cargo bench
The result is:
I have used stainless, but it does not affect the performance, I have tested it before.
So the benchmark shows that the inserting is only about 3124/per second.