{"id":32480336,"url":"https://github.com/hsjunnesson/giraffe","last_synced_at":"2026-07-14T09:32:30.977Z","repository":{"id":200832494,"uuid":"703896937","full_name":"hsjunnesson/giraffe","owner":"hsjunnesson","description":"A benchmark","archived":false,"fork":false,"pushed_at":"2023-12-14T20:21:10.000Z","size":9442,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T01:57:58.251Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hsjunnesson.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-12T06:19:52.000Z","updated_at":"2024-12-12T19:40:06.000Z","dependencies_parsed_at":"2023-12-14T21:39:54.686Z","dependency_job_id":null,"html_url":"https://github.com/hsjunnesson/giraffe","commit_stats":null,"previous_names":["hsjunnesson/giraffe"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/hsjunnesson/giraffe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsjunnesson%2Fgiraffe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsjunnesson%2Fgiraffe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsjunnesson%2Fgiraffe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsjunnesson%2Fgiraffe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hsjunnesson","download_url":"https://codeload.github.com/hsjunnesson/giraffe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsjunnesson%2Fgiraffe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35455901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-14T02:00:06.603Z","response_time":114,"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":"2025-10-27T01:57:46.582Z","updated_at":"2026-07-14T09:32:30.972Z","avatar_url":"https://github.com/hsjunnesson.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Giraffe\n\n\u003cimg src=\"https://github.com/hsjunnesson/giraffe/blob/main/giraffe.png\" /\u003e\n\nThis is a benchmark test exploring the difference between gameplay code implemented in C++, Lua, and LuaJIT (with and without just-in-time compilation), LuaU, and Angelscript.\nIt's a benchmark, not an example of how to code games. It's not meant to be optimized, promise.\n\nThis uses [Chocolate](https://github.com/hsjunnesson/chocolate) which is a kind of game framework in OpenGL. It's included as a submodule so be sure to:\n\n```\ngit submodule init\ngit submodule update\n```\n\nFor the cmake dependencies, use something like VCPKG and install the following packages:\n\n- glfw3\n- glm\n- cjson\n- imgui[core,opengl3-binding,glfw-binding]\n- backward-cpp\n\nIf you set the `SCRIPT` property you can select a scripting language, instead of the C++ reference implementation. Available options are `LUA51` (plain vanilla Lua 5.1), `LUAJIT`, `LUAU`, `ANGELSCRIPT`, or `ZIG`.\n\nFor `LUAJIT`, you will need to have PkgConfig installed to manage the dependency.\n\nFor `ZIG`, you will need to download and unzip the Zig installation somewhere, and add the directory that contains `zig.exe` to your path.\n\nExample make and build:\n\n```\ncmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DSCRIPT=LUA51\ncmake --build build/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsjunnesson%2Fgiraffe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhsjunnesson%2Fgiraffe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsjunnesson%2Fgiraffe/lists"}