{"id":21625999,"url":"https://github.com/pamaldi/isaura-jdk19-experiment","last_synced_at":"2025-03-18T20:21:27.789Z","repository":{"id":160652089,"uuid":"569752751","full_name":"pamaldi/isaura-jdk19-experiment","owner":"pamaldi","description":"Some jdk 19 experiment","archived":false,"fork":false,"pushed_at":"2023-05-18T09:10:43.000Z","size":41958,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T22:41:47.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/pamaldi.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":"2022-11-23T14:34:15.000Z","updated_at":"2024-03-06T12:51:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"06c8bbd3-1f26-44ea-b733-02eae4934ed6","html_url":"https://github.com/pamaldi/isaura-jdk19-experiment","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/pamaldi%2Fisaura-jdk19-experiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pamaldi%2Fisaura-jdk19-experiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pamaldi%2Fisaura-jdk19-experiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pamaldi%2Fisaura-jdk19-experiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pamaldi","download_url":"https://codeload.github.com/pamaldi/isaura-jdk19-experiment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244297871,"owners_count":20430347,"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":"2024-11-25T01:11:38.112Z","updated_at":"2025-03-18T20:21:27.760Z","avatar_url":"https://github.com/pamaldi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Isaura experiment\nSome experiment with jdk 19\n\n\n\n# Build\n\nAn [OpenJDK 19](https://jdk.java.net/19/) or later build is required. At the time of this writing, virtual\nthreads are a preview feature. That is why `--enable-preview` is provided below.\n\n---\nBuild with `mvn`:\n```shell\nmvn compile\n```\n\n\n## JMH\n\nSome experiments in [jmh] (https://github.com/openjdk/jmh).\nJMH is a library for benchmarks written in Java and other languages targeting the JVM.\n\nThe [BenchReadingTextFile.java](src/main/java/cloud/isaura/experimental/bench/BenchReadingTextFile.java) class\ntest the number of operations for a simple task: generate tokens for a large sting, using two different methods:\n- The method split of the String class\n- The StringTokenizer class\n\nIn a system with\n\nAvailable processors (cores): 12\nFree memory (bytes): 849800928\nMaximum memory (bytes): 4208984064\nTotal memory available to JVM (bytes): 975175680\n\nthe benchmarks between split and tokenizer are the following:\n\n\n| Benchmark                        | Mode | Cnt   | Score | Units |\n|----------------------------------|------|-------| -----  | ---- |\n| BenchReadingTextFile.split       | thrpt | 5   |  ≈ 10⁻³  | ops/ns |\n| BenchReadingTextFile.tokenizer   | thrpt | 5   |     2,990 | ops/ns |\n| BenchReadingTextFile.split       | avgt | 5    |  2291,476  | ns/op |\n| BenchReadingTextFile.tokenizer   | avgt | 5    |    0,320 | ns/op |\n\n## JOL\n\nSome experiments in [jol] (https://github.com/openjdk/jol).\nJOL is a library that that helps you measure size of objects in java.\n\nThe [TokenizerTest.java](src/main/java/cloud/isaura/experimental/text/TokenizerTest.java) class\ntokenize and store in an HashMap a dataset of song lyrics.\n\nThe jol library output as follows:\n\n| Count                          | Avg | sum   | Description |\n|--------------------------------|-----| -----  |-------------|\n| 1                              | 524304 | 524304   | [Ljava.util.HashMap$Node;   |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpamaldi%2Fisaura-jdk19-experiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpamaldi%2Fisaura-jdk19-experiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpamaldi%2Fisaura-jdk19-experiment/lists"}