Thread
#dublin
    t

    Tom Hanley

    1 year ago
    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!
    Tristan Hamilton

    Tristan Hamilton

    1 year ago
    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/