{"id":20556495,"url":"https://github.com/fmtlib/format-benchmark","last_synced_at":"2026-03-05T02:32:12.222Z","repository":{"id":17213980,"uuid":"19982631","full_name":"fmtlib/format-benchmark","owner":"fmtlib","description":"A collection of formatting benchmarks","archived":false,"fork":false,"pushed_at":"2025-12-18T17:03:03.000Z","size":1552,"stargazers_count":52,"open_issues_count":2,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-12-21T20:40:50.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fmtlib.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-05-20T13:50:21.000Z","updated_at":"2025-12-18T17:03:07.000Z","dependencies_parsed_at":"2025-04-09T17:50:13.119Z","dependency_job_id":null,"html_url":"https://github.com/fmtlib/format-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fmtlib/format-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmtlib%2Fformat-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmtlib%2Fformat-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmtlib%2Fformat-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmtlib%2Fformat-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fmtlib","download_url":"https://codeload.github.com/fmtlib/format-benchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmtlib%2Fformat-benchmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30107210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T01:39:18.192Z","status":"online","status_checked_at":"2026-03-05T02:00:06.710Z","response_time":93,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T03:28:18.127Z","updated_at":"2026-03-05T02:32:12.210Z","avatar_url":"https://github.com/fmtlib.png","language":"C++","readme":"A collection of formatting benchmarks\n=====================================\n\n* Speed, compile time and code bloat tests from\n  `tinyformat \u003chttps://github.com/c42f/tinyformat\u003e`__.\n* ``int-benchmark``: decimal integer to string conversion benchmark from Boost Karma\n* ``itoa-benchmark``: decimal integer to string conversion benchmark by Milo Yip. See `\u003csrc/itoa-benchmark/readme.md\u003e`__.\n\nBuilding and running ``int-benchmark``:\n\n.. code::\n\n   cmake .\n   make\n   ./int-benchmark\n\nAlternatively (requires ``ninja``)::\n\n   cmake -G Ninja .\n   ninja int-benchmark\n   ./int-benchmark\n\nSample results on macOS with clang and libc++:\n\n.. code::\n\n    2020-06-25 18:35:12\n    Running ./int-benchmark\n    Run on (8 X 2800 MHz CPU s)\n    CPU Caches:\n      L1 Data 32K (x4)\n      L1 Instruction 32K (x4)\n      L2 Unified 262K (x4)\n      L3 Unified 8388K (x1)\n    Load Average: 3.05, 2.27, 2.05\n    --------------------------------------------------------------------------------\n    Benchmark                      Time             CPU   Iterations UserCounters...\n    --------------------------------------------------------------------------------\n    sprintf                 62015560 ns     61939300 ns           10 items_per_second=16.1448M/s\n    std_ostringstream      153347073 ns    153167000 ns            4 items_per_second=6.52882M/s\n    std_to_string           15058924 ns     15052045 ns           44 items_per_second=66.4362M/s\n    std_to_chars            10995660 ns     10991238 ns           63 items_per_second=90.9816M/s\n    fmt_to_string           11909200 ns     11905632 ns           57 items_per_second=83.9939M/s\n    fmt_format_runtime      17071781 ns     17062878 ns           41 items_per_second=58.6068M/s\n    fmt_format_compile      11897635 ns     11893517 ns           58 items_per_second=84.0794M/s\n    fmt_format_to_runtime   13539784 ns     13534137 ns           51 items_per_second=73.8872M/s\n    fmt_format_to_compile    8941199 ns      8937675 ns           77 items_per_second=111.886M/s\n    fmt_format_int           8721323 ns      8718253 ns           79 items_per_second=114.702M/s\n    boost_lexical_cast      29685237 ns     29668455 ns           22 items_per_second=33.7058M/s\n    boost_format           315875676 ns    315739000 ns            2 items_per_second=3.16717M/s\n    boost_karma_generate    12138668 ns     12134518 ns           56 items_per_second=82.4095M/s\n    voigt_itostr            20177849 ns     19994243 ns           37 items_per_second=50.0144M/s\n    u2985907                 9445288 ns      9427174 ns           69 items_per_second=106.076M/s\n    decimal_from            13009338 ns     12952232 ns           56 items_per_second=77.2068M/s\n    stout_ltoa              39336210 ns     39325000 ns           18 items_per_second=25.4291M/s\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmtlib%2Fformat-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffmtlib%2Fformat-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmtlib%2Fformat-benchmark/lists"}