{"id":22472204,"url":"https://github.com/ckampfe/vec","last_synced_at":"2025-03-27T16:21:35.335Z","repository":{"id":72030682,"uuid":"465889791","full_name":"ckampfe/vec","owner":"ckampfe","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-03T21:44:40.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T20:11:18.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ckampfe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-03-03T21:26:51.000Z","updated_at":"2022-12-07T21:42:59.000Z","dependencies_parsed_at":"2023-03-25T21:08:13.696Z","dependency_job_id":null,"html_url":"https://github.com/ckampfe/vec","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/ckampfe%2Fvec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fvec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fvec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckampfe%2Fvec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ckampfe","download_url":"https://codeload.github.com/ckampfe/vec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245878931,"owners_count":20687299,"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-12-06T12:12:39.223Z","updated_at":"2025-03-27T16:21:35.315Z","avatar_url":"https://github.com/ckampfe.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vec\n\n\n```\n$ MIX_ENV=bench mix run bench.exs\nOperating System: macOS\nCPU Information: Apple M1 Max\nNumber of Available Cores: 10\nAvailable memory: 64 GB\nElixir 1.13.3\nErlang 25.0-rc1\n\nBenchmark suite executing with the following configuration:\nwarmup: 2 s\ntime: 5 s\nmemory time: 0 ns\nparallel: 1\ninputs: none specified\nEstimated total run time: 1.98 min\n\nBenchmarking Enum.at/3 1000...\nBenchmarking Enum.at/3 10000...\nBenchmarking List prepend 1000...\nBenchmarking List.last/1 1000...\nBenchmarking List.last/1 10000...\nBenchmarking List.replace_at/3 1000...\nBenchmarking List.replace_at/3 10000...\nBenchmarking Vec.at/3 1000...\nBenchmarking Vec.at/3 10000...\nBenchmarking Vec.from_list/1 1000...\nBenchmarking Vec.last/1 1000...\nBenchmarking Vec.last/1 10000...\nBenchmarking Vec.new()...\nBenchmarking Vec.push/1 1000...\nBenchmarking Vec.push/1 1000 with_capacity...\nBenchmarking Vec.set_at/3 1000...\nBenchmarking Vec.set_at/3 10000...\n\nName                                    ips        average  deviation         median         99th %\nVec.last/1 10000                 10778.21 K      0.0928 μs ±19973.19%           0 μs        1.00 μs\nVec.last/1 1000                  10745.52 K      0.0931 μs ±18552.14%           0 μs        1.00 μs\nVec.at/3 10000                   10061.94 K      0.0994 μs ±22553.53%           0 μs        1.00 μs\nVec.at/3 1000                    10028.60 K      0.0997 μs ±24045.41%           0 μs        1.00 μs\nVec.set_at/3 10000                7084.91 K       0.141 μs ±22782.43%           0 μs        1.00 μs\nVec.set_at/3 1000                 6880.82 K       0.145 μs ±22803.99%           0 μs        1.00 μs\nVec.new()                         3719.50 K        0.27 μs  ±8616.52%           0 μs        1.00 μs\nEnum.at/3 1000                    1254.29 K        0.80 μs  ±1451.66%        1.00 μs        1.00 μs\nList.last/1 1000                   610.49 K        1.64 μs   ±107.05%        2.00 μs        2.00 μs\nList.replace_at/3 1000             220.61 K        4.53 μs   ±319.62%        4.00 μs       10.00 μs\nList prepend 1000                  218.93 K        4.57 μs  ±1050.77%        4.00 μs       13.00 μs\nEnum.at/3 10000                    132.92 K        7.52 μs    ±37.64%        7.00 μs       10.00 μs\nVec.from_list/1 1000                84.96 K       11.77 μs   ±882.48%       11.00 μs       20.00 μs\nList.last/1 10000                   46.64 K       21.44 μs    ±37.77%       19.00 μs       44.00 μs\nList.replace_at/3 10000             22.19 K       45.07 μs    ±12.60%       45.00 μs       71.00 μs\nVec.push/1 1000 with_capacity       12.56 K       79.59 μs    ±13.24%       78.00 μs      113.00 μs\nVec.push/1 1000                     12.53 K       79.79 μs    ±17.97%       78.00 μs      113.00 μs\n\nComparison:\nVec.last/1 10000                 10778.21 K\nVec.last/1 1000                  10745.52 K - 1.00x slower +0.00028 μs\nVec.at/3 10000                   10061.94 K - 1.07x slower +0.00660 μs\nVec.at/3 1000                    10028.60 K - 1.07x slower +0.00693 μs\nVec.set_at/3 10000                7084.91 K - 1.52x slower +0.0484 μs\nVec.set_at/3 1000                 6880.82 K - 1.57x slower +0.0526 μs\nVec.new()                         3719.50 K - 2.90x slower +0.176 μs\nEnum.at/3 1000                    1254.29 K - 8.59x slower +0.70 μs\nList.last/1 1000                   610.49 K - 17.66x slower +1.55 μs\nList.replace_at/3 1000             220.61 K - 48.86x slower +4.44 μs\nList prepend 1000                  218.93 K - 49.23x slower +4.47 μs\nEnum.at/3 10000                    132.92 K - 81.09x slower +7.43 μs\nVec.from_list/1 1000                84.96 K - 126.86x slower +11.68 μs\nList.last/1 10000                   46.64 K - 231.07x slower +21.35 μs\nList.replace_at/3 10000             22.19 K - 485.75x slower +44.98 μs\nVec.push/1 1000 with_capacity       12.56 K - 857.88x slower +79.50 μs\nVec.push/1 1000                     12.53 K - 859.98x slower +79.70 μs\n\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckampfe%2Fvec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckampfe%2Fvec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckampfe%2Fvec/lists"}