{"id":16431409,"url":"https://github.com/stephencelis/swift-remove-first-benchmark","last_synced_at":"2025-07-04T17:05:31.433Z","repository":{"id":66258194,"uuid":"273273165","full_name":"stephencelis/swift-remove-first-benchmark","owner":"stephencelis","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-18T15:42:53.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-08T00:29:50.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/stephencelis.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2020-06-18T15:22:55.000Z","updated_at":"2021-09-25T15:25:13.000Z","dependencies_parsed_at":"2023-02-21T09:00:15.488Z","dependency_job_id":null,"html_url":"https://github.com/stephencelis/swift-remove-first-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fswift-remove-first-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fswift-remove-first-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fswift-remove-first-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fswift-remove-first-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephencelis","download_url":"https://codeload.github.com/stephencelis/swift-remove-first-benchmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240645268,"owners_count":19834396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-10-11T08:30:03.712Z","updated_at":"2025-02-25T09:47:07.061Z","avatar_url":"https://github.com/stephencelis.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-remove-first-benchmark\n\nBenchmarks `removeFirst()` against  `removeFirst(1)`:\n\n``` sh\n$ swift run -c release RemoveFirstBenchmark\nname                                        time          std        iterations\n-------------------------------------------------------------------------------\nString.removeFirst()                        81679174.0 ns ±   1.64 %         16\nString.removeFirst(1)                       81369569.0 ns ±   2.42 %         17\nSubstring.removeFirst()                          132.0 ns ± 274.18 %    1000000\nSubstring.removeFirst(1)                    93850715.0 ns ±   2.25 %         15\nSubstring.UnicodeScalarView.removeFirst()        109.0 ns ± 241.26 %    1000000\nSubstring.UnicodeScalarView.removeFirst(1)  18106959.0 ns ±   5.49 %         66\nSubstring.UTF8View.removeFirst()                 117.0 ns ± 313.89 %    1000000\nSubstring.UTF8View.removeFirst(1)                118.0 ns ± 287.76 %    1000000\nSubstring.UTF16View.removeFirst()                108.0 ns ± 323.84 %    1000000\nSubstring.UTF16View.removeFirst(1)               126.0 ns ± 330.52 %    1000000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephencelis%2Fswift-remove-first-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephencelis%2Fswift-remove-first-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephencelis%2Fswift-remove-first-benchmark/lists"}