@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixagram/lacerta-db",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "Lacerta-DB is a Javascript IndexedDB Database for Web Browsers. Simple, Fast, Secure.",
5
5
  "devDependencies": {
6
6
  "@babel/core": "^7.23.6",
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.11.4</h1>
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
- - **LRU / LFU / TTL** caching strategies per collection
105
- - **Compression** via CompressionStream (deflate) with magic-byte detection
106
- - **Cursor-free batch indexing** to prevent `TransactionInactiveError`
107
- - **Read-optimized mutex** no global lock on read transactions
108
- - Built-in performance monitor with optimization tips
109
- - Idle callback scheduling to keep UI responsive
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>