Skip to content

Commit eabf738

Browse files
authored
Merge pull request #4 from bsv-blockchain/dev/mrz
[Fix] Minor doc edits
2 parents 8bbeccc + 27d39f6 commit eabf738

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,13 @@ make bench
304304

305305
### Benchmark Results
306306

307-
| Benchmark | Iterations | ns/op | B/op | allocs/op |
308-
|--------------------------------------------------|------------|------:|-----:|----------:|
309-
| [LockFreeQ](lock_free_queue_benchmark_test.go) | 24752019 | 79.73 | 16 | 1 |
310-
| [NewLockFreeQ](lock_free_queue_benchmark_test.go) | 1000000000 | 0.29 | 0 | 0 |
311-
| [LockFreeQ_Enqueue](lock_free_queue_benchmark_test.go) | 25041442 | 49.18 | 16 | 1 |
312-
| [LockFreeQ_Dequeue](lock_free_queue_benchmark_test.go) | 338000521 | 11.14 | 0 | 0 |
313-
| [LockFreeQ_IsEmpty](lock_free_queue_benchmark_test.go) | 1000000000 | 0.60 | 0 | 0 |
307+
| Benchmark | Iterations | ns/op | B/op | allocs/op |
308+
|-------------------------------------------------------|------------|------:|-----:|----------:|
309+
| [LockFreeQueue](lock_free_queue_benchmark_test.go) | 24752019 | 79.73 | 16 | 1 |
310+
| [NewLockFreeQ](lock_free_queue_benchmark_test.go) | 1000000000 | 0.29 | 0 | 0 |
311+
| [LockFreeQEnqueue](lock_free_queue_benchmark_test.go) | 25041442 | 49.18 | 16 | 1 |
312+
| [LockFreeQDequeue](lock_free_queue_benchmark_test.go) | 338000521 | 11.14 | 0 | 0 |
313+
| [LockFreeQIsEmpty](lock_free_queue_benchmark_test.go) | 1000000000 | 0.60 | 0 | 0 |
314314

315315
> These benchmarks reflect fast, allocation-free lookups for most retrieval functions, ensuring optimal performance in production environments.
316316
> Performance benchmarks for the core functions in this library, executed on a 13th Gen Intel i7-1360P (AMD64).

lock_free_queue.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"sync/atomic"
77
)
88

9+
// node represents a single element in the lock-free queue.
910
type node[T any] struct {
1011
value T
1112
next atomic.Pointer[node[T]]

0 commit comments

Comments
 (0)