@pixagram/lacerta-db 0.13.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.min.js +2 -2
- package/dist/index.min.js +2 -2
- package/index.js +844 -171
- package/package.json +1 -1
- package/readme.md +19 -7
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<img src="https://raw.githubusercontent.com/pixagram-blockchain/LacertaDB/main/logo.webp?raw=true" alt="LacertaDB Logo" width="800"/>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
<h1 align="center">LacertaDB 0.
|
|
5
|
+
<h1 align="center">LacertaDB 0.13.2</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<strong>A high-performance, browser-native document database with encryption, indexing, and MongoDB-like queries.</strong>
|
|
@@ -101,12 +101,24 @@ LacertaDB is a **browser-native** document database built for Web3 applications,
|
|
|
101
101
|
<td>
|
|
102
102
|
|
|
103
103
|
### Performance
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
104
|
+
|
|
105
|
+
| Operation | LacertaDB | PouchDB 7.3 | Speedup |
|
|
106
|
+
|-----------|-----------|-------------|---------|
|
|
107
|
+
| **Bulk Write** | 532 ms | 2,664 ms | **5×** |
|
|
108
|
+
| **Read All** | 146 ms | 356 ms | **2.4×** |
|
|
109
|
+
| **Query** | 124 ms | 399 ms | **3.2×** |
|
|
110
|
+
| **Bulk Update** | 101 ms | 2,708 ms | **26.8×** |
|
|
111
|
+
| **Delete All** | 239 ms | 2,573 ms | **10.8×** |
|
|
112
|
+
|
|
113
|
+
**Why the Gap? It's the Serializer.** LacertaDB uses [TurboSerial](https://www.npmjs.com/package/@pixagram/turboserial).
|
|
114
|
+
|
|
115
|
+
### TurboSerial vs MessagePack vs CBOR
|
|
116
|
+
|
|
117
|
+
| Test Case | MessagePack | CBOR | TurboSerial |
|
|
118
|
+
|-----------|:-----------:|:----:|:-----------:|
|
|
119
|
+
| **Small Data** (API response) | 20,101 ops/s · 34B | 112,360 ops/s · 36B | **176,991 ops/s** · 62B |
|
|
120
|
+
| **Medium Data** (array of objects) | 334 ops/s · 4,093B | 3,460 ops/s · 4,168B | **5,587 ops/s** · 4,809B |
|
|
121
|
+
| **Large Data** (TypedArray 0.2MB) | 711 ops/s · 200,005B | 341 ops/s · 200,005B | **2,703 ops/s** · 200,023B |
|
|
110
122
|
|
|
111
123
|
</td>
|
|
112
124
|
</tr>
|