{"id":20576524,"url":"https://github.com/divs1210/streamex-benchmark","last_synced_at":"2026-05-19T04:03:04.809Z","repository":{"id":68119209,"uuid":"136095908","full_name":"divs1210/streamex-benchmark","owner":"divs1210","description":"MicroBenchmark: Clojure seqs vs transducers vs Java StreamEx","archived":false,"fork":false,"pushed_at":"2018-06-05T02:01:12.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T21:52:22.140Z","etag":null,"topics":["clojure","java","streams","transducers"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/divs1210.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-06-05T00:02:54.000Z","updated_at":"2018-06-05T02:03:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"58edb52e-30e5-4c20-923e-31f413513cc8","html_url":"https://github.com/divs1210/streamex-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divs1210%2Fstreamex-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divs1210%2Fstreamex-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divs1210%2Fstreamex-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divs1210%2Fstreamex-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divs1210","download_url":"https://codeload.github.com/divs1210/streamex-benchmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242196397,"owners_count":20087771,"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":["clojure","java","streams","transducers"],"created_at":"2024-11-16T05:46:03.566Z","updated_at":"2026-05-19T04:02:59.767Z","avatar_url":"https://github.com/divs1210.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# streamex-benchmark\n\nClojure wrapper over Java streams using StreamEx (https://github.com/amaembo/streamex)\n\n## Usage\n\nFrom `clj-stream.core-test`:\n```clojure\n(deftest tests\n  (is (= (bench\n          \"Clojure seqs:\"\n          (-\u003e\u003e (range 1000000)\n               (filter even?)\n               (map #(Math/sqrt %))\n               (reduce +)))\n\n         (bench\n          \"Clojure transducers:\"\n          (transduce (comp (filter even?)\n                           (map #(Math/sqrt %)))\n                     +\n                     (range 1000000)))\n\n         (bench\n          \"StreamEx streams:\"\n          (-\u003e (range 1000000)\n              (s/filter even?)\n              (s/map #(Math/sqrt %))\n              (s/reduce +))))))\n```\n\nRunning `lein test` shows:\n```\nClojure seqs:\n\"Elapsed time: 6151.199012 msecs\"\nClojure transducers:\n\"Elapsed time: 3928.352095 msecs\"\nStreamEx streams:\n\"Elapsed time: 5092.265878 msecs\"\n```\n\nSo... faster than seqs, but slower than transducers. Hmm.\n\n## License\n\nCopyright © Divyansh Prakash, 2018\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivs1210%2Fstreamex-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivs1210%2Fstreamex-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivs1210%2Fstreamex-benchmark/lists"}