(p map[common.Txid]*txPending)
| 557 | } |
| 558 | |
| 559 | func allPendingPages(p map[common.Txid]*txPending) common.Pgids { |
| 560 | pgids := common.Pgids{} |
| 561 | for _, pending := range p { |
| 562 | pgids = append(pgids, pending.ids...) |
| 563 | } |
| 564 | sort.Sort(pgids) |
| 565 | return pgids |
| 566 | } |
| 567 | |
| 568 | func Benchmark_FreelistRelease10K(b *testing.B) { benchmark_FreelistRelease(b, 10000) } |
| 569 | func Benchmark_FreelistRelease100K(b *testing.B) { benchmark_FreelistRelease(b, 100000) } |