@joint-ops/hitlimit-bun 1.0.2 → 1.0.3
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/README.md +11 -11
- package/dist/elysia.js +48 -17714
- package/dist/index.js +0 -29
- package/dist/stores/memory.js +0 -29
- package/dist/stores/redis.js +2 -9613
- package/dist/stores/sqlite.js +0 -29
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -17,23 +17,23 @@
|
|
|
17
17
|
**hitlimit-bun uses Bun's native SQLite** - no FFI overhead, no Node.js polyfills.
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
|
|
21
|
-
│
|
|
22
|
-
│ bun:sqlite ████████████████████████████
|
|
23
|
-
│ better-sqlite3
|
|
24
|
-
│
|
|
25
|
-
│ bun:sqlite is
|
|
26
|
-
│
|
|
27
|
-
|
|
20
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
21
|
+
│ │
|
|
22
|
+
│ bun:sqlite ████████████████████████████ 520,000 ops/s │
|
|
23
|
+
│ better-sqlite3 ██████████████████░░░░░░░░░░ 400,000 ops/s │
|
|
24
|
+
│ │
|
|
25
|
+
│ bun:sqlite is 30% faster with zero FFI overhead │
|
|
26
|
+
│ │
|
|
27
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
- **Bun Native** - Built specifically for Bun's runtime, not a Node.js port
|
|
31
|
-
- **
|
|
32
|
-
- **
|
|
31
|
+
- **7.2M ops/sec** - Memory store performance
|
|
32
|
+
- **520K ops/sec** - With bun:sqlite persistence
|
|
33
33
|
- **Zero Config** - Works out of the box with sensible defaults
|
|
34
34
|
- **Elysia Plugin** - First-class Elysia framework integration
|
|
35
35
|
- **TypeScript First** - Full type safety and IntelliSense support
|
|
36
|
-
- **Tiny Footprint** -
|
|
36
|
+
- **Tiny Footprint** - ~23KB total, zero runtime dependencies
|
|
37
37
|
|
|
38
38
|
## Installation
|
|
39
39
|
|