laravel/pint

pint --parallel slower on mac

Open

#421 opened on 2026年2月12日

GitHub で見る
 (4 comments) (0 reactions) (0 assignees)PHP (3,127 stars) (189 forks)user submission
help wanted

説明

Pint Version

1.27.1

PHP Version

8.4.17

Description

pint is slower using --parallel option on Mac Mini M4 base model (10-core CPU with 4 performance cores and 6 energy-efficient cores)

Don't know why, maybe it doesn't use the perf-cores ?

~/D/project/project develop ❱ time pint --parallel

PASS .................... 596 files
________________________________________________________
Executed in  810.74 millis    fish           external
   usr time    3.14 secs    277.00 micros    3.14 secs
   sys time    0.78 secs    980.00 micros    0.78 secs
~/D/project/project develop ❱ time pint
 
 PASS .................... 596 files
________________________________________________________
Executed in  289.43 millis    fish           external
   usr time  212.91 millis  234.00 micros  212.67 millis
   sys time   70.71 millis  858.00 micros   69.85 millis

It is faster using --max-processes 4 but slower than no parallelism.

~/D/project/project develop• ❱ time pint --parallel --max-processes 4

 PASS .................... 596 files
________________________________________________________
Executed in  609.86 millis    fish           external
   usr time    1.14 secs    270.00 micros    1.14 secs
   sys time    0.23 secs    967.00 micros    0.23 secs

3 secs with pint --parallel 1.2 secs with pint --parallel --max-processes 4 0.9 secs with pint --parallel --max-processes 3 0.6 secs with pint --parallel --max-processes 2 0.4 secs with pint --parallel --max-processes 1 0.2 secs with pint

Steps To Reproduce

pint --parallel

コントリビューターガイド