Skip to content

Commit 3c7cfc8

Browse files
committed
Update README.md benchmark table
- Convert microseconds to milliseconds for better readability - Update performance claims from 20M ops/sec to 500K ops/sec to match actual results - Update benchmark operation names to match new naming convention (lowercase method names)
1 parent 49545bb commit 3c7cfc8

1 file changed

Lines changed: 22 additions & 22 deletions

File tree

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ A fast, flexible immutable DataStore for collections of records with indexing, v
3131

3232
## Key Features
3333

34-
- **⚡ Blazing Fast**: O(1) indexed lookups - up to 20M ops/sec for instant data access
34+
- **⚡ Blazing Fast**: O(1) indexed lookups - up to 500K ops/sec for instant data access
3535
- **📚 Built-in Versioning**: Automatic change tracking without writing audit trail code
3636
- **🔒 Immutable Mode**: Data safety with frozen objects - prevent accidental mutations
3737
- **🔍 Advanced Querying**: Complex queries with `find()`, `where()`, `search()` - no manual filtering
@@ -53,7 +53,7 @@ A fast, flexible immutable DataStore for collections of records with indexing, v
5353

5454
### 🚀 Performance Benefits
5555

56-
- **20M+ ops/sec**: Blazing fast indexed lookups for real-time applications
56+
- **500K+ ops/sec**: Blazing fast indexed lookups for real-time applications
5757
- **Automatic optimization**: Indexes maintained automatically on every operation
5858
- **Batch operations**: Process 10,000 records in milliseconds
5959
- **Memory efficient**: Optimized data structures for minimal overhead
@@ -574,31 +574,31 @@ Haro provides excellent performance for in-memory data operations:
574574
| Operation | Latency (avg) | Throughput (ops/s) |
575575
|-----------|---------------|-------------------|
576576
| **Basic Operations** |
577-
| store.set() 10000 records | 1507481 μs | 747 ops/s |
578-
| store.get() 10000 records | 34701 μs | 29015 ops/s |
579-
| store.has() 10000 keys | 2026 μs | 495325 ops/s |
580-
| store.delete() 10000 records | 2352541 μs | 432 ops/s |
577+
| set() 10000 records | 1507 ms | 747 ops/s |
578+
| get() 10000 records | 35 ms | 29015 ops/s |
579+
| has() 10000 keys | 2 ms | 495325 ops/s |
580+
| delete() 10000 records | 2353 ms | 432 ops/s |
581581
| **Search & Filter** |
582-
| FIND by indexed field 10000 records | 97926 μs | 10299 ops/s |
583-
| WHERE by indexed field 10000 records | 221501 μs | 4516 ops/s |
584-
| SEARCH in index 10000 records | 115837 μs | 8716 ops/s |
585-
| FILTER all records 10000 records | 114828 μs | 8822 ops/s |
582+
| find() by indexed field 10000 records | 98 ms | 10299 ops/s |
583+
| where() by indexed field 10000 records | 222 ms | 4516 ops/s |
584+
| search() in index 10000 records | 116 ms | 8716 ops/s |
585+
| filter() all records 10000 records | 115 ms | 8822 ops/s |
586586
| **Index Operations** |
587-
| CREATE indexes 10000 records | 10841763 μs | 94 ops/s |
588-
| FIND with index 10000 records | 3995929 μs | 267 ops/s |
589-
| REINDEX single field 10000 records | 5738721 μs | 182 ops/s |
587+
| haro() with indexes 10000 records | 10842 ms | 94 ops/s |
588+
| find() with index 10000 records | 3996 ms | 267 ops/s |
589+
| reindex() single field 10000 records | 5739 ms | 182 ops/s |
590590
| **Utility Operations** |
591-
| toArray() 1000 iterations | 21157 μs | 47750 ops/s |
592-
| entries() 1000 iterations | 91936 μs | 10986 ops/s |
593-
| keys() 1000 iterations | 17109 μs | 59043 ops/s |
594-
| values() 1000 iterations | 16680 μs | 60553 ops/s |
591+
| toArray() 1000 iterations | 21 ms | 47750 ops/s |
592+
| entries() 1000 iterations | 92 ms | 10986 ops/s |
593+
| keys() 1000 iterations | 17 ms | 59043 ops/s |
594+
| values() 1000 iterations | 17 ms | 60553 ops/s |
595595
| **Pagination** |
596-
| LIMIT 10 10000 records | 14727 μs | 69050 ops/s |
597-
| LIMIT 50 10000 records | 15543 μs | 65516 ops/s |
598-
| LIMIT 100 10000 records | 16611 μs | 61172 ops/s |
599-
| LIMIT with offset 10000 records | 15574 μs | 65522 ops/s |
596+
| limit() 10 10000 records | 15 ms | 69050 ops/s |
597+
| limit() 50 10000 records | 16 ms | 65516 ops/s |
598+
| limit() 100 10000 records | 17 ms | 61172 ops/s |
599+
| limit() with offset 10000 records | 16 ms | 65522 ops/s |
600600
| **Persistence** |
601-
| DUMP records 5000 records | 75368 μs | 13583 ops/s |
601+
| dump() records 5000 records | 75 ms | 13583 ops/s |
602602

603603
See [`benchmarks/README.md`](https://github.com/avoidwork/haro/blob/master/benchmarks/README.md) for complete benchmark documentation and detailed results.
604604

0 commit comments

Comments
 (0)