{"id":17160718,"url":"https://github.com/mikhailmaslo/json-parsing-benchmarks","last_synced_at":"2025-10-12T16:31:15.578Z","repository":{"id":181606034,"uuid":"398570609","full_name":"mikhailmaslo/json-parsing-benchmarks","owner":"mikhailmaslo","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-24T07:27:33.000Z","size":12504,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-09T04:46:59.015Z","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/mikhailmaslo.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}},"created_at":"2021-08-21T13:54:27.000Z","updated_at":"2024-10-27T10:39:03.000Z","dependencies_parsed_at":"2023-07-16T13:38:57.541Z","dependency_job_id":null,"html_url":"https://github.com/mikhailmaslo/json-parsing-benchmarks","commit_stats":null,"previous_names":["mikhailmaslo/json-parsing-benchmarks"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikhailmaslo%2Fjson-parsing-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikhailmaslo%2Fjson-parsing-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikhailmaslo%2Fjson-parsing-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikhailmaslo%2Fjson-parsing-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikhailmaslo","download_url":"https://codeload.github.com/mikhailmaslo/json-parsing-benchmarks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236249178,"owners_count":19118644,"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-14T22:25:45.230Z","updated_at":"2025-10-12T16:31:10.519Z","avatar_url":"https://github.com/mikhailmaslo.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n\n`Demo` - console application for Demo on presentation\n\n`Snippets` - snippets for `Demo` (Copy them to `/Users/YourUsername/Library/Developer/Xcode/UserData/CodeSnippets` replacing `YourUsername` with your actual username)\n\n`Benchmarks` - project with tests on iOS platform\n\n# Benchmark results\n\n## Twitter\n\n![Twitter](https://github.com/mikhailmaslo/json-parsing-benchmarks/blob/master/Presentation/twitter.jpg)\n\n## Canada\n\n![Canada](https://github.com/mikhailmaslo/json-parsing-benchmarks/blob/master/Presentation/canada.jpg)\n\n## Apache\n\n![Apache](https://github.com/mikhailmaslo/json-parsing-benchmarks/blob/master/Presentation/apache.jpg)\n\n## Github\n\n![Github](https://github.com/mikhailmaslo/json-parsing-benchmarks/blob/master/Presentation/github.jpg)\n\n# Links\n\n## Used Libraries\n\n- [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON) - JSONSerialization + Dictionary wrapper\n- [ObjectMapper](https://github.com/tristanhimmelman/ObjectMapper) - JSONSerialization + Dictionary wrapper\n- [HandyJSON](https://github.com/alibaba/HandyJSON) - Swift reflection \u0026 Objective-C introspection\n- [ZippyJSON](https://github.com/michaeleisel/ZippyJSON) - parsing is written on C++ [simdjson](https://github.com/simdjson/simdjson). Custom Decoder + Codable\n- [swift-extras-json](https://github.com/swift-extras/swift-extras-json) - pure Swift - doesn't depend on Foundation. Custom Decoder + Codable\n\n## Other\n\n- [Swift reflection](https://medium.com/@weswickwire/creating-a-swift-runtime-library-3cc92fc486cc) - how you can set variable in structs / classes using Swift reflection\n- Codable is using JSONSerialization under the hood - [proof](https://github.com/apple/swift/blob/d93e0dfa01ddd897ba733b6a2d43b05e2f0073f9/stdlib/public/SDK/Foundation/JSONEncoder.swift#L1105)\n- [Sourcery in practice](https://khanlou.com/2017/09/sourcery-in-practice/) - example for (auto) Codable\n- [How GTA V load time was cut by 70 %](https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times-by-70/) (spoiler: json was too big and parsing implementation was too naive)\n- What Apple [thought](https://developer.apple.com/swift/blog/?id=37) about reflection before Codable was released\n- [Parsing JSON Really Quickly: Lessons Learned](https://www.youtube.com/watch?v=wlvKAT7SZIQ) - by the author of [simdjson](https://github.com/simdjson/simdjson)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikhailmaslo%2Fjson-parsing-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikhailmaslo%2Fjson-parsing-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikhailmaslo%2Fjson-parsing-benchmarks/lists"}