Skip to content

Commit 398f098

Browse files
committed
Add benchmark results in README.md
1 parent 20e8450 commit 398f098

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
11
# Comparisons.PostgreSQLVSDoublets
22

3-
The comparison between PostgreSQL and Doublets
3+
The comparison between PostgreSQL and LinksPlatform's Doublets (links) on basic database operations with objects (create table, read table, delete table, update table).
4+
All benchmarks ran with 3000 links in background and 1000 in active use (i.e. insert, delete, update).
5+
6+
## Operations
7+
- **Update** – basic update operation
8+
- **Each All** – take all links matching `[*, *, *]` constraint
9+
- **Each Incoming** – take all links matching `[*, *, target]` constraint
10+
- **Each Outgoing** – take all links matching `[*, source, *]` constraint
11+
- **Each Concrete** – take all links matching `[*, source, target]` constraint
12+
- **Each Identity** – take all links matching `[id, *, *]` constraint
13+
- **Delete** – basic delete operation
14+
- **Create** – insert point (link with id = source = target)
15+
16+
## Results
17+
The results below represent the amount of time (ns) the operation takes per iteration.
18+
- First picture shows time in a pixel scale.
19+
- Second picture shows time in a logarithmic scale.
20+
21+
### Rust
22+
![Image of Rust benchmark (pixel scale)](https://github.com/linksplatform/Comparisons.PostgreSQLVSDoublets/blob/gh-pages/Docs/bench_rust.png?raw=true)
23+
![Image of Rust benchmark (log scale)](https://github.com/linksplatform/Comparisons.PostgreSQLVSDoublets/blob/gh-pages/Docs/bench_rust_log_scale.png?raw=true)
24+
25+
## Conclusion
26+
As we can see in this comparison, Doublets are blazingly faster than PostgreSQL in basic database operations.

0 commit comments

Comments
 (0)