[{"data":1,"prerenderedAt":135},["ShallowReactive",2],{"blog-post-hyperfine-multiple-parameters":3,"recent-posts":73},{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":10,"slugs":11,"linked_documents":13,"lang":14,"alternate_languages":15,"data":16},"awBNkxIAACkAFJ-q","hyperfine-multiple-parameters",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=awoIKhMAACcAzECF&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22awBNkxIAACkAFJ-q%22%29+%5D%5D",[],"2026-11-26T22:45:05+0000",[12],"hyperfine-how-to-run-multiple-parameters",[],"en-us",[],{"title":17,"date":23,"description":24,"image":29,"content":39},[18],{"type":19,"text":20,"spans":21,"direction":22},"heading1","Hyperfine: How to Run Multiple Parameters",[],"ltr","2026-11-26",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Learn how to run multiple parameters in one benchmark with hyperfine",[],{"dimensions":30,"alt":20,"copyright":6,"url":33,"id":34,"edit":35},{"width":31,"height":32},1280,720,"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002F_l5pwA96nzZYxC9L_hyperfine-multiple-parameters.png?auto=format,compress","_l5pwA96nzZYxC9L",{"x":36,"y":36,"zoom":37,"background":38},0,1,"transparent",[40,44,48,51,54,57,60,63,66,70],{"type":41,"text":42,"spans":43,"direction":22},"paragraph","Before we start, make sure you have hyperfine installed on your computer and the file you want to benchmark ready in a folder. If you don't have hyperfine yet, run this command:",[],{"type":45,"text":46,"spans":47,"direction":22},"preformatted","brew install hyperfine",[],{"type":41,"text":49,"spans":50,"direction":22},"To benchmark several variations at once, use the \u003Ccode>-L\u003C\u002Fcode> flag. It takes a name and a comma-separated list of values, and you use that name in curly braces inside your command. Repeat \u003Ccode>-L\u003C\u002Fcode> for each list:",[],{"type":45,"text":52,"spans":53,"direction":22},"hyperfine -L cc gcc,clang -L opt O0,O2 '{cc} -{opt} word_count.c -o words'",[],{"type":41,"text":55,"spans":56,"direction":22},"Just remember to replace \u003Ccode>word_count.c\u003C\u002Fcode> with your own file. Hyperfine runs every combination, so this gives you four benchmarks: \u003Ccode>gcc\u003C\u002Fcode> and \u003Ccode>clang\u003C\u002Fcode>, each at \u003Ccode>O0\u003C\u002Fcode> and \u003Ccode>O2\u003C\u002Fcode>. Every benchmark is labelled with the exact command it ran, and the whole thing takes a few seconds.",[],{"type":41,"text":58,"spans":59,"direction":22},"For a range of numbers, use the \u003Ccode>-P\u003C\u002Fcode> flag with a name, a minimum and a maximum:",[],{"type":45,"text":61,"spans":62,"direction":22},"hyperfine -P n 1 3 'sleep 0.{n}'",[],{"type":41,"text":64,"spans":65,"direction":22},"That runs \u003Ccode>sleep 0.1\u003C\u002Fcode>, \u003Ccode>sleep 0.2\u003C\u002Fcode> and \u003Ccode>sleep 0.3\u003C\u002Fcode>. Add the \u003Ccode>-D\u003C\u002Fcode> flag if you want to change the step size.",[],{"type":67,"oembed":68},"embed",{"embed_url":69,"type":67},"",{"type":41,"text":71,"spans":72,"direction":22},"One thing to keep in mind: if you pass more than one command together with a parameter list, hyperfine runs every command for every value, even if a command doesn't use that name. If you want separate variants, skip the list and pass each full command in its own quotes.",[],{"results":74,"page":37,"results_per_page":133,"results_size":133,"total_results_size":134,"total_pages":37},[75,95,114],{"id":76,"uid":77,"url":6,"type":7,"href":78,"tags":79,"first_publication_date":80,"last_publication_date":80,"slugs":81,"linked_documents":83,"lang":14,"alternate_languages":84,"data":85},"awGsBRIAAC0AFqOw","httpie-pretty-print-json","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=awoIKhMAACcAzECF&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22awGsBRIAAC0AFqOw%22%29+%5D%5D",[],"2026-11-27T22:46:01+0000",[82],"httpie-how-to-pretty-print-json",[],[],{"image":86,"title":92},{"dimensions":87,"alt":88,"copyright":6,"url":89,"id":90,"edit":91},{"width":31,"height":32},"HTTPie: How to Pretty Print JSON","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FlCNUDBWv_1DmEc9s_httpie-pretty-print-json.png?auto=format,compress","lCNUDBWv_1DmEc9s",{"x":36,"y":36,"zoom":37,"background":38},[93],{"type":19,"text":88,"spans":94,"direction":22},[],{"id":96,"uid":97,"url":6,"type":7,"href":98,"tags":99,"first_publication_date":80,"last_publication_date":80,"slugs":100,"linked_documents":102,"lang":14,"alternate_languages":103,"data":104},"awGsAhIAACkAFqOe","bat-git-diff","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=awoIKhMAACcAzECF&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22awGsAhIAACkAFqOe%22%29+%5D%5D",[],[101],"bat-how-to-use-it-with-git-diff",[],[],{"image":105,"title":111},{"dimensions":106,"alt":107,"copyright":6,"url":108,"id":109,"edit":110},{"width":31,"height":32},"Bat: How to Use It with git diff","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002Fhv5njvdg6CY6UfYl_bat-git-diff.png?auto=format,compress","hv5njvdg6CY6UfYl",{"x":36,"y":36,"zoom":37,"background":38},[112],{"type":19,"text":107,"spans":113,"direction":22},[],{"id":115,"uid":116,"url":6,"type":7,"href":117,"tags":118,"first_publication_date":80,"last_publication_date":80,"slugs":119,"linked_documents":121,"lang":14,"alternate_languages":122,"data":123},"awGsBBIAACsAFqOq","bat-hide-file-header","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=awoIKhMAACcAzECF&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22awGsBBIAACsAFqOq%22%29+%5D%5D",[],[120],"bat-how-to-hide-the-file-header",[],[],{"image":124,"title":130},{"dimensions":125,"alt":126,"copyright":6,"url":127,"id":128,"edit":129},{"width":31,"height":32},"Bat: How to Hide the File Header","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002F7ZkXhTyVPYMIyYzS_bat-hide-file-header.png?auto=format,compress","7ZkXhTyVPYMIyYzS",{"x":36,"y":36,"zoom":37,"background":38},[131],{"type":19,"text":126,"spans":132,"direction":22},[],3,104,1795819586057]