{"id":28533120,"url":"https://github.com/nbxxf/json-benchmark","last_synced_at":"2026-04-26T08:38:23.848Z","repository":{"id":213133915,"uuid":"733117181","full_name":"NBXXF/json-benchmark","owner":"NBXXF","description":"市面上所有json反序列化速度对比,Gson-code-gen 最优","archived":false,"fork":false,"pushed_at":"2023-12-18T15:54:31.000Z","size":723,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T19:45:33.806Z","etag":null,"topics":["benchmark","benchmarking","gson","json"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/NBXXF.png","metadata":{"files":{"readme":"README-en.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}},"created_at":"2023-12-18T15:48:13.000Z","updated_at":"2025-05-19T12:54:15.000Z","dependencies_parsed_at":"2023-12-18T18:25:40.948Z","dependency_job_id":"49433cf3-285e-4263-9f2a-5888e236f671","html_url":"https://github.com/NBXXF/json-benchmark","commit_stats":null,"previous_names":["nbxxf/json-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NBXXF/json-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NBXXF%2Fjson-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NBXXF%2Fjson-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NBXXF%2Fjson-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NBXXF%2Fjson-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NBXXF","download_url":"https://codeload.github.com/NBXXF/json-benchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NBXXF%2Fjson-benchmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32291316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T08:29:33.829Z","status":"ssl_error","status_checked_at":"2026-04-26T08:29:18.366Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["benchmark","benchmarking","gson","json"],"created_at":"2025-06-09T16:38:14.520Z","updated_at":"2026-04-26T08:38:23.843Z","avatar_url":"https://github.com/NBXXF.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"English | **[简体中文](README.md)**\n\n# json-benchmark\n- Use the Jetpack Microbenchmark library for benchmark testing to avoid the impact of CPU frequency reduction and JIT optimization on test results.\n- The test case input includes three json files of size 12kb, 78kb, and 238kb to test the impact of json size on deserialization speed.\n- The test results are divided into the results after multiple runs and sufficient preheating.\n\n## Test results\n### Multi-run test results\n|                      | small json    | medium json    | large json    |\n|----------------------|---------------|----------------|---------------|\n| gsonAutoAdapter      | 248708     ns | 1617912 ns     | 4360885    ns |\n| Kotlin Serialization | 272427    ns  | 2070424 ns     | 5915567   ns  |\n| JSONReader           | 478328    ns  | 3562876   ns   | 10036805  ns  |\n| FastJson             | 297617    ns  | 2241065   ns   | 8412797   ns  |\n| JSONObject           | 345072    ns  | 2796920   ns   | 4788937   ns  |\n| Moshi                | 766846    ns  | 3839614   ns   | 10105642  ns  |\n| Gson                 | 863314    ns  | 2892755   ns   | 6432696   ns  |\n| Jackson              | 3095442   ns  | 5201153   ns   | 9291294   ns  |\n\n\n![](img/jsonpk.png)\n\n## Gson-Code-gen\n- gson automatically generates TypeAdapter, which is the fastest and eliminates reflection. Please refer to [gson_plugin](https://github.com/NBXXF/gson_plugin)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbxxf%2Fjson-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnbxxf%2Fjson-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbxxf%2Fjson-benchmark/lists"}