Skip to content

Commit

Permalink
Remove perf test
Browse files Browse the repository at this point in the history
  • Loading branch information
sstone committed May 14, 2024
1 parent 81f13cd commit 2bc522a
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,20 +532,6 @@ class Bolt11InvoiceTestsCommon : LightningTestSuite() {
assertNull(pr1.description)
}

@Ignore
fun `perf test`() {
val random = Random.Default
fun random5(): Byte = (random.nextInt() and 0x1f).toByte()
val int5s = (0..1000).map { random5() }
var foo = 0
val start = currentTimestampMillis()
(0..1000).forEach {
foo += Bolt11Invoice.toByteArray(int5s).size
}
val end = currentTimestampMillis()
println("${end - start} $foo")
}

companion object {
fun createInvoiceUnsafe(
amount: MilliSatoshi? = null,
Expand Down

0 comments on commit 2bc522a

Please sign in to comment.