{"id":20698309,"url":"https://github.com/msink/kotlin-pi","last_synced_at":"2025-08-03T16:40:03.420Z","repository":{"id":74323707,"uuid":"110552085","full_name":"msink/kotlin-pi","owner":"msink","description":"Performance test: computes n decimal digits of π","archived":false,"fork":false,"pushed_at":"2018-04-28T08:02:45.000Z","size":95,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T19:11:18.498Z","etag":null,"topics":["kotlin","kotlin-native"],"latest_commit_sha":null,"homepage":"","language":"C","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/msink.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":"2017-11-13T13:32:22.000Z","updated_at":"2018-12-18T11:55:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"12692db2-9493-4fc1-ab9e-6eac3f17d3e5","html_url":"https://github.com/msink/kotlin-pi","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msink%2Fkotlin-pi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msink%2Fkotlin-pi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msink%2Fkotlin-pi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msink%2Fkotlin-pi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msink","download_url":"https://codeload.github.com/msink/kotlin-pi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250330747,"owners_count":21413030,"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":["kotlin","kotlin-native"],"created_at":"2024-11-17T00:24:11.721Z","updated_at":"2025-04-22T21:46:25.925Z","avatar_url":"https://github.com/msink.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testbench for [Kotlin/Native EAP](https://github.com/JetBrains/kotlin-native)\n\n[![Build status](https://ci.appveyor.com/api/projects/status/github/msink/kotlin-pi?svg=true)](https://ci.appveyor.com/project/msink/kotlin-pi)\n[![Build Status](https://travis-ci.org/msink/kotlin-pi.svg?branch=master)](https://travis-ci.org/msink/kotlin-pi)\n\nThe original pi.c was taken from http://bellard.org/pi/pi.c\n(added a plain loop to calculate digits from 1 to n instead of digits around n-th)\n\nComputing 1000 decimal digits of π, average time on 20 runs:\n\n|                              |                 |\n| :--------------------------- | :-------------  |\n| C                            | 6.8 sec         |\n| Kotlin/Native interop with C | 6.8 sec         |\n| Kotlin/Native 0.7 EAP        | 6.9 sec         |\n| Kotlin/Native 0.6.2 EAP      | 9.3 sec         |\n| Kotlin/Native 0.6 EAP        | 10.2 sec        |\n| Kotlin/Native 0.4 EAP        | 11.4 sec        |\n\nResult - performance in this test is almost identical, Kotlin is approx. 2% slower.\n\nBut it is EAP, so even that 2% may be fixed in next versions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsink%2Fkotlin-pi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsink%2Fkotlin-pi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsink%2Fkotlin-pi/lists"}