{"id":26779508,"url":"https://github.com/hellyguo/java-obj-pool-bench","last_synced_at":"2026-01-06T18:55:19.571Z","repository":{"id":282707124,"uuid":"949412360","full_name":"hellyguo/java-obj-pool-bench","owner":"hellyguo","description":"try to compare all available object pool libraries","archived":false,"fork":false,"pushed_at":"2025-03-16T12:13:33.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-16T13:23:55.003Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellyguo.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":"2025-03-16T12:05:19.000Z","updated_at":"2025-03-16T12:13:36.000Z","dependencies_parsed_at":"2025-03-16T16:01:30.522Z","dependency_job_id":null,"html_url":"https://github.com/hellyguo/java-obj-pool-bench","commit_stats":null,"previous_names":["hellyguo/java-obj-pool-bench"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellyguo%2Fjava-obj-pool-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellyguo%2Fjava-obj-pool-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellyguo%2Fjava-obj-pool-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellyguo%2Fjava-obj-pool-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellyguo","download_url":"https://codeload.github.com/hellyguo/java-obj-pool-bench/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246145028,"owners_count":20730495,"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":"2025-03-29T06:17:32.845Z","updated_at":"2026-01-06T18:55:19.567Z","avatar_url":"https://github.com/hellyguo.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# java-obj-pool-bench\n\ntry to compare all available object pool libraries, under **JVM 1.8**\n\n## 对比测试结果\n\n- just `new`\n- [`BeeOP`](https://github.com/Chris2018998/BeeOP)\n- [`commons-pool`](https://commons.apache.org/proper/commons-pool/)\n- [`commons-pool2`](https://commons.apache.org/proper/commons-pool/)\n- [`CoralPool`](https://github.com/coralblocks/CoralPool/)\n- [`ERASOFT Furious Object Pool`](https://code.google.com/archive/p/furious-objectpool/)\n- [`Fast Object Pool`](https://github.com/DanielYWoo/fast-object-pool)\n- [`frogspawn`](https://itcraft.cn/frogspawn/)\n- [`generic-object-pool`](https://github.com/bbottema/generic-object-pool)\n- [`key bean pool`](https://github.com/gondor/kbop/)\n- [`lite-pool`](https://github.com/nextopcn/lite-pool)\n- [`Stormpot Blaze/Queue Pool`](http://chrisvest.github.io/stormpot/)\n- [`vibur-object-pool`](https://github.com/vibur/vibur-object-pool)\n\n\u003e 运行于 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz\n\n\u003e `JVM` 开启参数 `-XX:-RestrictContended`\n\n```verilog\nBenchmark                                                            (desc)   Mode  Cnt    Score    Error   Units\nCompare001Benchmark.testPoolGetAndRelease     ApacheCommonsPool001StackPool  thrpt    5    2.684 ±  0.680  ops/us\nCompare001Benchmark.testPoolGetAndRelease          ApacheCommonsPool002Pool  thrpt    5    1.047 ±  0.150  ops/us\nCompare001Benchmark.testPoolGetAndRelease   ApacheCommonsPool003SoftRefPool  thrpt    5    4.151 ±  0.494  ops/us\nCompare001Benchmark.testPoolGetAndRelease         ApacheCommonsPool2001Pool  thrpt    5    1.804 ±  0.239  ops/us\nCompare001Benchmark.testPoolGetAndRelease  ApacheCommonsPool2002SoftRefPool  thrpt    5    0.047 ±  0.009  ops/us\nCompare001Benchmark.testPoolGetAndRelease                  BeeOp001FastPool  thrpt    5   24.292 ± 11.521  ops/us\nCompare001Benchmark.testPoolGetAndRelease              BeeOp002ObjectSource  thrpt    5   11.077 ±  8.003  ops/us\nCompare001Benchmark.testPoolGetAndRelease             CoralPool001ArrayPool  thrpt    5   16.179 ± 33.348  ops/us\nCompare001Benchmark.testPoolGetAndRelease            CoralPool002LinkedPool  thrpt    5    7.127 ±  1.874  ops/us\nCompare001Benchmark.testPoolGetAndRelease                   EraaSoftPool001  thrpt    5    7.016 ±  0.461  ops/us\nCompare001Benchmark.testPoolGetAndRelease                       FastPool001  thrpt    5   10.222 ±  7.259  ops/us\nCompare001Benchmark.testPoolGetAndRelease                      Frogspawn001  thrpt    5  117.436 ± 12.307  ops/us\nCompare001Benchmark.testPoolGetAndRelease              GenericObjectPool001  thrpt    5    4.481 ±  0.075  ops/us\nCompare001Benchmark.testPoolGetAndRelease                        JavaNew001  thrpt    5  287.359 ± 19.300  ops/us\nCompare001Benchmark.testPoolGetAndRelease                         KOPool001  thrpt    5    2.257 ±  0.358  ops/us\nCompare001Benchmark.testPoolGetAndRelease                       LitePool001  thrpt    5    0.369 ±  0.025  ops/us\nCompare001Benchmark.testPoolGetAndRelease              StormPot001BlazePool  thrpt    5   77.003 ± 26.504  ops/us\nCompare001Benchmark.testPoolGetAndRelease              StormPot002QueuePool  thrpt    5    4.601 ±  0.297  ops/us\nCompare001Benchmark.testPoolGetAndRelease                      ViburPool001  thrpt    5    3.921 ±  0.105  ops/us\n```\n\n```verilog\nBenchmark                                                    Mode  Cnt      Score      Error   Units\nCompare002Benchmark.test0NewOneRequestMultiTimes            thrpt    5   6227.045 ± 2143.521  ops/ms\nCompare002Benchmark.test1BeeOPOneRequestMultiTimes          thrpt    5  11614.665 ± 1636.184  ops/ms\nCompare002Benchmark.test2CommonsPoolOneRequestMultiTimes    thrpt    5     58.541 ±    3.104  ops/ms\nCompare002Benchmark.test3FrogspawnPoolOneRequestMultiTimes  thrpt    5    873.924 ±   18.034  ops/ms\nCompare002Benchmark.test4GOPoolOneRequestMultiTimes         thrpt    5    172.718 ±    8.730  ops/ms\nCompare002Benchmark.test5LitePoolOneRequestMultiTimes       thrpt    5    432.140 ±   72.527  ops/ms\nCompare002Benchmark.test6ViburPoolOneRequestMultiTimes      thrpt    5    140.157 ±    3.787  ops/ms\n```\n\n## 结论\n\n1. 逐个使用，建议使用：`frogspawn`/`stormpot`(`blaze pool`)\n2. 一批使用，建议使用：`BeeOP`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellyguo%2Fjava-obj-pool-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellyguo%2Fjava-obj-pool-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellyguo%2Fjava-obj-pool-bench/lists"}