{"repo":"rosetta-rs/argparse-rosetta-rs","free":true,"listed":false,"github":"https://github.com/rosetta-rs/argparse-rosetta-rs","clone":"git clone https://github.com/rosetta-rs/argparse-rosetta-rs.git","description":"Comparing argparse APIs","language":"Python","stars":195,"topics":["rust","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"Rust Arg Parsing Benchmarks This repo tries to assess Rust arg parsing performance. We currently compare: Name Style Notes ----------------------------------------------------- ----------------------- ------ No-op N/A N/A argh derive bpaf Combinatoric or derive clap lex Imperative No help generation clap Builder or derive Color, suggested fixes, completions gumdrop derive lexopt Imperative No help generation pico-args Imperative No help generation xflags proc-macro See also an examination of design trade offs Note: any non-performance comparison is meant to provide context for what you gain/lose with each crate's overhead. For a full comparison, see each parser docs Results Name Overhead (release) Build (debug) Parse (release) Invalid UTF-8 Downloads Version ----- -------------------- --------------- ----------------- --------------- ----------- -------- null 0 KiB 163ms (full) 115ms (incremental) 1ms Y - - argh 38 KiB 4s (full) 138ms (incremental) 2ms N v0.1.14 bpaf 256 KiB 831ms (full) 137ms (incremental) 2ms Y v0.9.23 bpaf derive 253 KiB 4s (full) 140ms (incremental) 2ms Y v0.9.23 clap 574 KiB 3s (full) 170ms (incremental) 2ms Y v4.5.60 clap-minimal 377 KiB 2s (full) 155ms (incremental) 2ms Y v4.5.60 clap derive 596 KiB 4s (full) 182ms (incremental) 2ms Y v4.5.60 clap lex 28 KiB 336ms (full) 129ms (incremental) 2ms Y v1.0.0 gumdrop 28 KiB 2s (full) 135ms (incremental) 1ms N v0.8.1 lexopt 37 KiB 329ms (full) 124ms (incremental) 2ms Y v0.3.2 pico-args 24 KiB 300ms (full) 123","default_branch":null,"files":null,"tree":[],"storefront":"/r/rosetta-rs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rosetta-rs/argparse-rosetta-rs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}