MCPcopy Index your code
hub / github.com/devaccuracy/ledgerforge / BenchmarkCreateQueueCopy

Function BenchmarkCreateQueueCopy

transaction_benchmark_test.go:363–373  ·  view source on GitHub ↗

BenchmarkCreateQueueCopy measures queue copy creation for split transactions

(b *testing.B)

Source from the content-addressed store, hash-verified

361
362// BenchmarkCreateQueueCopy measures queue copy creation for split transactions
363func BenchmarkCreateQueueCopy(b *testing.B) {
364 txn := createTestTransaction("source-001", "dest-001", "ref-001", 100.00)
365 txn.TransactionID = "txn-original-001"
366 txn.CreatedAt = time.Now()
367 txn.PreciseAmount = big.NewInt(10000)
368
369 b.ResetTimer()
370 for i := 0; i < b.N; i++ {
371 _ = createQueueCopy(txn, "ref-original")
372 }
373}

Callers

nothing calls this directly

Calls 2

createTestTransactionFunction · 0.85
createQueueCopyFunction · 0.85

Tested by

no test coverage detected