Skip to content

Commit 1a4f473

Browse files
committed
fix: added benchmarks
1 parent 23d0123 commit 1a4f473

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,16 @@ make bench
297297

298298
### Benchmark Results
299299

300-
| Benchmark | Iterations | ns/op | B/op | allocs/op |
301-
|-------------------------------------|------------|------:|-----:|----------:|
302-
| [Greet](template_benchmark_test.go) | 21,179,739 | 56.59 | 40 | 2 |
300+
| Benchmark Name | Iterations | ns/op | B/op | allocs/op |
301+
|------------------------------------|------------:|-----------:|-----------:|----------:|
302+
| NewTxInpoints | 4,245,616 | 300.7 | 644 | 3 |
303+
| Subtree_Deserialize | 13 | 85,003,877 | 67,109,206 | 9 |
304+
| Subtree_DeserializeNodesFromReader | 13 | 82,279,602 | 50,331,666 | 2 |
305+
| Subtree_DeserializeFromReader | 14 | 82,479,347 | 67,108,952 | 7 |
306+
| SubtreeNodeIndex | 2,659,832 | 440.5 | 45 | 1 |
307+
| Subtree_AddNode | 135,712,501 | 11.85 | 0 | 0 |
308+
| Subtree_Serialize | 36,528,111 | 46.54 | 155 | 0 |
309+
| Subtree_SerializeNodes | 100,000,000 | 10.94 | 32 | 0 |
303310

304311
> These benchmarks reflect fast, allocation-free lookups for most retrieval functions, ensuring optimal performance in production environments.
305312
> Performance benchmarks for the core functions in this library, executed on an Apple M1 Max (ARM64).

0 commit comments

Comments
 (0)