{"id":22973844,"url":"https://github.com/cassiofb-dev/advent-of-code","last_synced_at":"2025-04-02T07:24:32.550Z","repository":{"id":266392152,"uuid":"898229987","full_name":"cassiofb-dev/advent-of-code","owner":"cassiofb-dev","description":"Benchmark and solutions for AOC","archived":false,"fork":false,"pushed_at":"2024-12-09T19:07:42.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T02:09:25.720Z","etag":null,"topics":["advent-of-code","aoc"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cassiofb-dev.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":"2024-12-04T02:49:38.000Z","updated_at":"2024-12-09T19:07:46.000Z","dependencies_parsed_at":"2024-12-04T03:37:09.337Z","dependency_job_id":null,"html_url":"https://github.com/cassiofb-dev/advent-of-code","commit_stats":null,"previous_names":["cassiofb-dev/advent-of-code"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassiofb-dev%2Fadvent-of-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassiofb-dev%2Fadvent-of-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassiofb-dev%2Fadvent-of-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassiofb-dev%2Fadvent-of-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cassiofb-dev","download_url":"https://codeload.github.com/cassiofb-dev/advent-of-code/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246771382,"owners_count":20831051,"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":["advent-of-code","aoc"],"created_at":"2024-12-14T23:58:59.289Z","updated_at":"2025-04-02T07:24:32.531Z","avatar_url":"https://github.com/cassiofb-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  Advent of Code\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eBenchmark and solutions for AOC\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#about\"\u003eAbout\u003c/a\u003e •\n  \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e •\n  \u003ca href=\"#benchmarks\"\u003eBenchmarks\u003c/a\u003e •\n  \u003ca href=\"#credits\"\u003eCredits\u003c/a\u003e •\n  \u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\n\u003c/p\u003e\n\n## About\n\nThis repository contains benchmarks and solutions for the [Advent of Code](https://adventofcode.com) problems.\nThe solutions are written in different languages and the benchmarks are generated with [Hyperfine](https://github.com/sharkdp/hyperfine).\n\n## Usage\n\nRun in your terminal ``docker compose up -d``. You can check the results on the file ``run_solutions.txt`` created on root directory or inside the programs directory with a txt file created for each program.\n\nTo use it without docker make sure you have installed the programs in the section [credits](#credits) and run ``python run_solutions.py``.\n\nA benchmark can be produced with ``python run_solutions.py benchmark`` the result file will be ``run_solutions.md`` in root directory.\n\n## Benchmarks\n\nThe benchmarks bellow were generated with [Hyperfine](https://github.com/sharkdp/hyperfine) in 100 warmups and 100 runs:\n\n| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |\n|:---|---:|---:|---:|---:|\n| `python /advent-of-code/editions/2024/02/part_1.py` | 17.6 ± 0.4 | 17.0 | 18.6 | 8.99 ± 0.48 |\n| `/advent-of-code/editions/2024/02/part_2.c.bin` | 2.0 ± 0.1 | 1.7 | 2.4 | 1.00 |\n| `python /advent-of-code/editions/2024/02/part_2.py` | 23.1 ± 0.3 | 22.6 | 24.9 | 11.79 ± 0.60 |\n| `python /advent-of-code/editions/2024/01/part_1.py` | 16.5 ± 0.2 | 16.2 | 17.0 | 8.41 ± 0.42 |\n| `python /advent-of-code/editions/2024/01/part_2.py` | 24.4 ± 2.2 | 23.4 | 33.7 | 12.46 ± 1.26 |\n\n## Credits\n\nThanks for these awesome open source projects bellow:\n\n- [Hyperfine](https://github.com/sharkdp/hyperfine)\n- [Docker](https://github.com/docker)\n- [NodeJS](https://github.com/nodejs)\n- [Python](https://github.com/python)\n- [Java](https://github.com/openjdk/jdk)\n- [Rust](https://github.com/rust-lang/rust)\n- [GCC](https://github.com/gcc-mirror/gcc)\n\n## License\n\nMIT\n\n---\n\n\u003e [Website](https://cassiofernando.com) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e GitHub [@cassiofb-dev](https://github.com/cassiofb-dev) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e Twitter [@cassiofb_dev](https://twitter.com/cassiofb_dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcassiofb-dev%2Fadvent-of-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcassiofb-dev%2Fadvent-of-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcassiofb-dev%2Fadvent-of-code/lists"}