home ¦ Archives ¦ Atom ¦ RSS

More On Prek

From Hugo van Kemenade, some benchmarking of the performance of prek for managing git commit hooks:

prek is noticeably quicker at installing hooks.

⚡ About 10x faster than pre-commit and uses only a third of disk space. This 10x is a comparison of installing hooks using the excellent hyperfine benchmarking tool.

Here’s my own comparison.

Kemenade doesn’t see 10x but definitely a significant performance boost. He also provides some handy shell aliases for pre-commit and prek.

© 2008-2025 C. Ross Jam. Built using Pelican. Theme based upon Giulio Fidente’s original svbhack, and slightly modified by crossjam.