{"id":21835226,"url":"https://github.com/dhi13man/jsonata4java-benchmark","last_synced_at":"2026-04-24T21:32:39.459Z","repository":{"id":211884293,"uuid":"730098521","full_name":"Dhi13man/jsonata4java-benchmark","owner":"Dhi13man","description":"Minimal Benchmarking using Java Microbenchmark Harness (JMH), of IBM JSONata4Java vs doing the same work in native java.","archived":false,"fork":false,"pushed_at":"2023-12-16T16:07:30.000Z","size":395,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T17:43:14.632Z","etag":null,"topics":["analytics","benchmark","java","jmh","json","jsonata"],"latest_commit_sha":null,"homepage":"https://medium.com/@dhi13man/benchmarking-ibms-jsonata4java-using-java-microbenchmark-harness-jmh-2e2f7543ecbd","language":"Java","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/Dhi13man.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2023-12-11T07:48:50.000Z","updated_at":"2023-12-14T17:02:01.000Z","dependencies_parsed_at":"2023-12-16T17:23:27.638Z","dependency_job_id":null,"html_url":"https://github.com/Dhi13man/jsonata4java-benchmark","commit_stats":null,"previous_names":["dhi13man/jsonata4java-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dhi13man/jsonata4java-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Fjsonata4java-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Fjsonata4java-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Fjsonata4java-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Fjsonata4java-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dhi13man","download_url":"https://codeload.github.com/Dhi13man/jsonata4java-benchmark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Fjsonata4java-benchmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32241621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":["analytics","benchmark","java","jmh","json","jsonata"],"created_at":"2024-11-27T20:18:44.949Z","updated_at":"2026-04-24T21:32:39.429Z","avatar_url":"https://github.com/Dhi13man.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonata4java-benchmark\n\nMinimal Benchmarking of [IBM JSONata4Java](https://github.com/IBM/JSONata4Java) vs doing the same\nwork in native Java.\n\nThis benchmark is implemented\nusing [Java Microbenchmark Harness (JMH)](https://github.com/openjdk/jmh)\n\n## Latest Run (2023-12-15T20:00:00Z IST) Results\n\n[![img.png](assets/2023-12-15T20:00:00Z.png)](https://github.com/Dhi13man/jsonata4java-benchmark/blob/218dd4403842fecb80a0713c1a80c83396089eb9/reports/2023-12-15T20%3A00%3A00Z/native_vs_jsonata_vs_jsonata_precompiled.txt)\n\n### Test ran\n\nThe aim was to calculate the average operation time and throughput.\n\n- Ran three types of transformations (SIMPLE / COMPLEX / JOIN)\n- Ran using 3 JVM Warmup Process and 5 Evaluated JVM Processes\n- Each process runs 5 Warmup iterations and 5 Evaluated iterations\n- Each iteration runs as many operations as possible for 10 seconds\n\nTotal Benchmarking Duration: 4 Hours 08 Minutes 39 Seconds\n\n### Key Findings\n\nAs per the benchmarking results,\n\n1. logic implemented natively in Java is between 2 and 3 orders of magnitude faster than\n   the same logic implemented in JSONata.\n2. JSONata precompiled implementation is up to 1 order of magnitude faster than the\n   compiled-at-runtime JSONata implementation.\n3. JSONata's implementation code is much more repeatable and flexible than the native\n   implementation.\n\n### Summary\n\nDespite JSONata seeming much slower than native implementation, most systems are not going to be\ndoing this order of magnitude of processing anyway. So, the JSONata implementation is a good choice\nfor most systems, because of its flexibility.\n\nFurther, pre-compiling the JSONata expressions in Java could lead to performance improvements, even\nif not as much as native implementation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhi13man%2Fjsonata4java-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhi13man%2Fjsonata4java-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhi13man%2Fjsonata4java-benchmark/lists"}