{"id":37130814,"url":"https://github.com/icefed/flatctest","last_synced_at":"2026-01-14T15:02:15.938Z","repository":{"id":242880433,"uuid":"810829987","full_name":"icefed/flatctest","owner":"icefed","description":"FlatBuffers VS ProtocolBuffer","archived":false,"fork":false,"pushed_at":"2024-06-15T03:42:25.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-15T07:56:56.129Z","etag":null,"topics":["bench","benchmark","example","flatbuffers","golang","protocol-buffers"],"latest_commit_sha":null,"homepage":"","language":"Go","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/icefed.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-05T12:35:45.000Z","updated_at":"2024-07-15T07:56:56.130Z","dependencies_parsed_at":"2024-06-05T14:37:53.284Z","dependency_job_id":null,"html_url":"https://github.com/icefed/flatctest","commit_stats":null,"previous_names":["icefed/flatctest"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/icefed/flatctest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icefed%2Fflatctest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icefed%2Fflatctest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icefed%2Fflatctest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icefed%2Fflatctest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icefed","download_url":"https://codeload.github.com/icefed/flatctest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icefed%2Fflatctest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28424040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["bench","benchmark","example","flatbuffers","golang","protocol-buffers"],"created_at":"2026-01-14T15:02:15.352Z","updated_at":"2026-01-14T15:02:15.920Z","avatar_url":"https://github.com/icefed.png","language":"Go","readme":"# FlatBuffers VS ProtocolBuffer in Golang\n\nThis project is a benchmark comparing FlatBuffers and ProtocolBuffer in Golang for serializing and grpc, also including FlatBuffers examples.\n\nI used FlatBuffers builder pool to reduce memory usage and make it faster.\n\n## run bench\n``` bash\ngo test -bench=. -benchtime=5s -benchmem\n```\n\n## bench results\n```bash\ngoos: darwin\ngoarch: arm64\npkg: github.com/icefed/flatctest\nBenchmarkSerial/0k/flatc/marshal-10     32386426               183.7 ns/op           344 B/op          3 allocs/op\nBenchmarkSerial/0k/flatc/unmarshal-10           1000000000               0.09336 ns/op         0 B/op          0 allocs/op\nBenchmarkSerial/0k/proto/marshal-10             36719302               163.0 ns/op           152 B/op          2 allocs/op\nBenchmarkSerial/0k/proto/unmarshal-10           136989554               44.96 ns/op          144 B/op          4 allocs/op\nBenchmarkSerial/4k/flatc/marshal-10             11720715               510.6 ns/op      8021.69 MB/s        4952 B/op          3 allocs/op\nBenchmarkSerial/4k/flatc/unmarshal-10           1000000000               0.09285 ns/op  44113826.25 MB/s               0 B/op          0 allocs/op\nBenchmarkSerial/4k/proto/marshal-10             11292236               531.7 ns/op      7704.30 MB/s        4992 B/op          2 allocs/op\nBenchmarkSerial/4k/proto/unmarshal-10            8511976               711.7 ns/op      5755.01 MB/s        4240 B/op          5 allocs/op\nBenchmarkSerial/64k/flatc/marshal-10             1713183              3497 ns/op        18740.08 MB/s      73816 B/op          3 allocs/op\nBenchmarkSerial/64k/flatc/unmarshal-10          1000000000               0.09183 ns/op  713695376.05 MB/s              0 B/op          0 allocs/op\nBenchmarkSerial/64k/proto/marshal-10             1724004              3538 ns/op        18523.45 MB/s      73856 B/op          2 allocs/op\nBenchmarkSerial/64k/proto/unmarshal-10           1826797              3267 ns/op        20058.99 MB/s      65680 B/op          5 allocs/op\nBenchmarkSerial/1m/flatc/marshal-10               209402             29682 ns/op        35326.96 MB/s    1056856 B/op          3 allocs/op\nBenchmarkSerial/1m/flatc/unmarshal-10           1000000000               0.09219 ns/op  11374183234.74 MB/s            0 B/op          0 allocs/op\nBenchmarkSerial/1m/proto/marshal-10               185460             32231 ns/op        32532.70 MB/s    1056896 B/op          2 allocs/op\nBenchmarkSerial/1m/proto/unmarshal-10             195446             30848 ns/op        33991.33 MB/s    1048722 B/op          5 allocs/op\nBenchmarkSerial/4m/flatc/marshal-10                84526             70602 ns/op        59407.96 MB/s    4202585 B/op          3 allocs/op\nBenchmarkSerial/4m/flatc/unmarshal-10           1000000000               0.09704 ns/op  43221254577.56 MB/s            0 B/op          0 allocs/op\nBenchmarkSerial/4m/proto/marshal-10                74522             82227 ns/op        51008.63 MB/s    4202625 B/op          2 allocs/op\nBenchmarkSerial/4m/proto/unmarshal-10              74306             78487 ns/op        53439.47 MB/s    4194451 B/op          5 allocs/op\nBenchmarkGRPC/0k/flatc/write-10                   356440             16762 ns/op            9799 B/op        179 allocs/op\nBenchmarkGRPC/0k/flatc/read-10                    361366             16824 ns/op            9977 B/op        174 allocs/op\nBenchmarkGRPC/0k/flatc/writestream-10             649605              9422 ns/op            1301 B/op         35 allocs/op\nBenchmarkGRPC/0k/flatc/readstream-10              627028              9295 ns/op            1477 B/op         30 allocs/op\nBenchmarkGRPC/0k/proto/write-10                   370357             16043 ns/op            9134 B/op        164 allocs/op\nBenchmarkGRPC/0k/proto/read-10                    377991             16106 ns/op            9166 B/op        164 allocs/op\nBenchmarkGRPC/0k/proto/writestream-10             684652              8664 ns/op             716 B/op         22 allocs/op\nBenchmarkGRPC/0k/proto/readstream-10              684654              8763 ns/op             748 B/op         22 allocs/op\nBenchmarkGRPC/4k/flatc/write-10                   326216             18163 ns/op         225.52 MB/s       19384 B/op        180 allocs/op\nBenchmarkGRPC/4k/flatc/read-10                    314350             18859 ns/op         217.19 MB/s       24194 B/op        175 allocs/op\nBenchmarkGRPC/4k/flatc/writestream-10             518239             11761 ns/op         348.28 MB/s       10862 B/op         37 allocs/op\nBenchmarkGRPC/4k/flatc/readstream-10              491422             12158 ns/op         336.89 MB/s       15673 B/op         32 allocs/op\nBenchmarkGRPC/4k/proto/write-10                   322810             18590 ns/op         220.34 MB/s       23118 B/op        170 allocs/op\nBenchmarkGRPC/4k/proto/read-10                    330999             18381 ns/op         222.84 MB/s       23146 B/op        170 allocs/op\nBenchmarkGRPC/4k/proto/writestream-10             506856             12021 ns/op         340.73 MB/s       14675 B/op         29 allocs/op\nBenchmarkGRPC/4k/proto/readstream-10              498494             12206 ns/op         335.59 MB/s       14705 B/op         29 allocs/op\nBenchmarkGRPC/64k/flatc/write-10                  150900             40364 ns/op        1623.63 MB/s      159731 B/op        183 allocs/op\nBenchmarkGRPC/64k/flatc/read-10                   141702             43450 ns/op        1508.31 MB/s      234130 B/op        180 allocs/op\nBenchmarkGRPC/64k/flatc/writestream-10            168550             35898 ns/op        1825.61 MB/s      151045 B/op         41 allocs/op\nBenchmarkGRPC/64k/flatc/readstream-10             152575             39431 ns/op        1662.05 MB/s      225296 B/op         36 allocs/op\nBenchmarkGRPC/64k/proto/write-10                  135118             45533 ns/op        1439.31 MB/s      225703 B/op        174 allocs/op\nBenchmarkGRPC/64k/proto/read-10                   136824             43882 ns/op        1493.46 MB/s      225736 B/op        175 allocs/op\nBenchmarkGRPC/64k/proto/writestream-10            152743             38901 ns/op        1684.68 MB/s      216906 B/op         33 allocs/op\nBenchmarkGRPC/64k/proto/readstream-10             154670             40225 ns/op        1629.23 MB/s      216802 B/op         33 allocs/op\nBenchmarkGRPC/1m/flatc/write-10                    15668            372921 ns/op        2811.79 MB/s     2137121 B/op        209 allocs/op\nBenchmarkGRPC/1m/flatc/read-10                     16165            366897 ns/op        2857.95 MB/s     3195781 B/op        202 allocs/op\nBenchmarkGRPC/1m/flatc/writestream-10              16540            360812 ns/op        2906.16 MB/s     2130089 B/op         65 allocs/op\nBenchmarkGRPC/1m/flatc/readstream-10               16203            367039 ns/op        2856.85 MB/s     3194432 B/op         55 allocs/op\nBenchmarkGRPC/1m/proto/write-10                    15099            378915 ns/op        2767.31 MB/s     3196282 B/op        190 allocs/op\nBenchmarkGRPC/1m/proto/read-10                     14916            384893 ns/op        2724.33 MB/s     3192524 B/op        205 allocs/op\nBenchmarkGRPC/1m/proto/writestream-10              17311            347154 ns/op        3020.49 MB/s     3197955 B/op         51 allocs/op\nBenchmarkGRPC/1m/proto/readstream-10               16072            370094 ns/op        2833.27 MB/s     3187025 B/op         54 allocs/op\nBenchmarkGRPC/4m/flatc/write-10                     3906           1306072 ns/op        3211.39 MB/s     8436711 B/op        243 allocs/op\nBenchmarkGRPC/4m/flatc/read-10                      3913           1427557 ns/op        2938.10 MB/s    12635649 B/op        274 allocs/op\nBenchmarkGRPC/4m/flatc/writestream-10               4426           1354595 ns/op        3096.35 MB/s     8425319 B/op         85 allocs/op\nBenchmarkGRPC/4m/flatc/readstream-10                3776           1418248 ns/op        2957.38 MB/s    12635373 B/op        117 allocs/op\nBenchmarkGRPC/4m/proto/write-10                     3993           1415338 ns/op        2963.47 MB/s    12635738 B/op        235 allocs/op\nBenchmarkGRPC/4m/proto/read-10                      4076           1422215 ns/op        2949.14 MB/s    12635129 B/op        246 allocs/op\nBenchmarkGRPC/4m/proto/writestream-10               4338           1270769 ns/op        3300.60 MB/s    12634890 B/op         78 allocs/op\nBenchmarkGRPC/4m/proto/readstream-10                4341           1372446 ns/op        3056.08 MB/s    12631841 B/op         79 allocs/op\nPASS\nok      github.com/icefed/flatctest     385.807s\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficefed%2Fflatctest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficefed%2Fflatctest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficefed%2Fflatctest/lists"}