https://kotlinlang.org logo
#dublin
Title
# dublin
t

Tom Hanley

11/28/2020, 8:38 PM
I also tested out the question i had about how bad the performance if for throwing and catching an exception, so I tested with the JMH setup and interestingly: • a
runCatching
block that doesn't throw was doing well over 200k ops/ms • a
runCatching
block that did throw and catch an exception was doing 993 ops/ms So quite the performance hit from throwing exceptions!
🤯 2
t

Tristan Hamilton

11/30/2020, 10:20 AM
that is very interesting! I think that would make for a great addition to the existing benchmarks. Oh and the diagram I showed in the slides, there is this great jmh visualiser where you can take the outputted json and jsut drop it here: https://jmh.morethan.io/
6 Views