https://pantsbuild.org/ logo
#general
Title
# general
h

high-yak-85899

02/27/2023, 8:15 PM
Got to use the new batching features from the new release with great success! We had some test setup that has a large one-time cost setting up some mocks. By batching, we can limit how often we incur that cost and reduced a huge chunk of test execution time by 7x
Copy code
(3.8.10) ~/devel/monorepo (batching)$ time ./pants test --force ops/unittests/::
....
Wrote test reports to dist/test_results

real	1m16.427s
user	0m0.719s
sys	0m0.073s
Without batching configured
Copy code
(3.8.10) ~/devel/monorepo (master)$ time ./pants test ops/unittests/::
....
Wrote test reports to dist/test_results

real	7m52.670s
user	0m0.701s
sys	0m0.076s
The docs also made it very clear how best to set up this feature for our needs by using the default flags in our build files.
🙌 4
s

sparse-lifeguard-95737

02/27/2023, 8:18 PM
glad to hear it 🙂 thanks for the feedback
h

happy-kitchen-89482

02/27/2023, 8:35 PM
@sparse-lifeguard-95737 is being humble - he implemented this epic feature!
3 Views