jqwik-team / jqwik

Property-Based Testing on the JUnit Platform
http://jqwik.net
Eclipse Public License 2.0
578 stars 64 forks source link

Cache reflective access in LambdaSupport #443

Closed vlsi closed 1 year ago

vlsi commented 1 year ago

Overview

It improves DateTimeTests from 24sec to 2.4sec

GitHub Before:

https://github.com/jlink/jqwik/actions/runs/3775603022/jobs/6418377699#step:5:438

         43.8sec,    7 completed,   0 failed,   0 skipped, net.jqwik.time.api.dateTimes.localDateTime.dateTimeMethods.DateTimeTests
        149.0sec, 1211 completed,   0 failed,   0 skipped, Gradle Test Run :time:test

GitHub After:

https://github.com/jlink/jqwik/actions/runs/3786064361/jobs/6436619215#step:5:442

         44.0sec, 1211 completed,   0 failed,   0 skipped, Gradle Test Run :time:test

I hereby agree to the terms of the jqwik Contributor Agreement.

jlink commented 1 year ago

@vlsi That was a real performance booster. Got the time module tests down to 16 secs from 70 secs on my machine. Thanks!