A quick performance comparison of Python code formatters

Results

  • Black: 1.6 minutes
  • autopep8: 2.2 minutes
  • yapf: 9.9 minutes… or rather that’s how long until it crashed
  • they output to stdout by default
  • they don’t do recursive processing by default when you give them a folder

--

--

--

Programmer at TriOptima where we lower risks in the financial system.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anders Hovmöller

Anders Hovmöller

Programmer at TriOptima where we lower risks in the financial system.

More from Medium

Python Virtual Environments

Lambda Function in Python.

Better Tree Traversal in Python

An abstract image of lines arranged in a branching tree-like structure.

Python sigma rule #1