Skip to content

Commit 6a8a24b

Browse files
committed
Added performance testing
1 parent 5761fcb commit 6a8a24b

2 files changed

Lines changed: 439 additions & 0 deletions

File tree

PERF.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Results of performance benchmarks with current implementation:
2+
3+
Performance Comparison:
4+
String Map: 1.6081ms, 310.92 ops/ms
5+
Number Map: 1.3837ms, 361.35 ops/ms
6+
Array Map: 1.4091ms, 354.84 ops/ms
7+
8+
✓ src/performance.test.ts (9 tests) 24262ms
9+
✓ Performance Benchmarks > Compression Performance > should benchmark compression with different option map sizes 3169ms
10+
✓ Performance Benchmarks > Compression Performance > should benchmark compression with different selection ratios 3929ms
11+
✓ Performance Benchmarks > Decompression Performance > should benchmark decompression with different compressed string sizes 81ms
12+
✓ Performance Benchmarks > Round-trip Performance > should benchmark full compression-decompression cycle 622ms
13+
✓ Performance Benchmarks > Memory Usage Benchmarks > should measure memory usage for large datasets 10702ms
14+
✓ Performance Benchmarks > Edge Cases Performance > should benchmark performance with empty selections 290ms
15+
✓ Performance Benchmarks > Edge Cases Performance > should benchmark performance with full selections 332ms
16+
✓ Performance Benchmarks > Edge Cases Performance > should benchmark performance with single option 289ms
17+
✓ Performance Benchmarks > should provide performance comparison between different approaches 4845ms

0 commit comments

Comments
 (0)