{"id":17045421,"url":"https://github.com/kudo/react-native-cli-plugin-benchmark","last_synced_at":"2025-04-12T15:31:48.580Z","repository":{"id":38615148,"uuid":"241343516","full_name":"Kudo/react-native-cli-plugin-benchmark","owner":"Kudo","description":"React Native CLI Plugin for Benchmark Regression","archived":false,"fork":false,"pushed_at":"2023-01-06T02:36:02.000Z","size":1994,"stargazers_count":21,"open_issues_count":16,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-31T13:33:04.673Z","etag":null,"topics":["react-native","react-native-cli"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Kudo.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}},"created_at":"2020-02-18T11:25:43.000Z","updated_at":"2024-05-23T08:38:08.000Z","dependencies_parsed_at":"2023-02-05T03:16:50.800Z","dependency_job_id":null,"html_url":"https://github.com/Kudo/react-native-cli-plugin-benchmark","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kudo%2Freact-native-cli-plugin-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kudo%2Freact-native-cli-plugin-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kudo%2Freact-native-cli-plugin-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kudo%2Freact-native-cli-plugin-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kudo","download_url":"https://codeload.github.com/Kudo/react-native-cli-plugin-benchmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223527835,"owners_count":17160090,"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":["react-native","react-native-cli"],"created_at":"2024-10-14T09:37:23.088Z","updated_at":"2024-11-07T14:03:53.469Z","avatar_url":"https://github.com/Kudo.png","language":"TypeScript","readme":"[![npm version](https://badge.fury.io/js/react-native-cli-plugin-benchmark.svg)](https://badge.fury.io/js/react-native-cli-plugin-benchmark)\n![GitHub Actions CI](https://github.com/Kudo/react-native-cli-plugin-benchmark/workflows/Build/badge.svg)\n\n# react-native-cli-plugin-benchmark\nReact Native CLI Plugin for Benchmark Regression\n\n## Installation\n```sh\n$ yarn add react-native-cli-plugin-benchmark\n```\n\n## Supported Commands\n\n### react-native get-appsize-ios\nGet the generated IPA size from run-ios output\n\n```sh\n$ react-native get-appsize-ios --configuration Release --sdk iphoneos \ninfo Found Xcode workspace \"RNApp.xcworkspace\"\ninfo Building (using \"xcodebuild -workspace RNApp.xcworkspace -configuration Release -scheme RNApp -sdk iphoneos CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO\")\ninfo Generated app size:\n{\"/Users/kudo/Library/Developer/Xcode/DerivedData/RNApp-auhfmjezpdwqwhasqmpbigmosgfe/Build/Products/Release-iphoneos/RNApp.app\":37632}\n```\n\n### react-native get-appsize-android\nGet the generated APK size from run-android output\n\n```sh\n$ react-native get-appsize-android --variant release\ninfo Running jetifier to migrate libraries to AndroidX. You can disable it using \"--no-jetifier\" flag.\ninfo Building the app...\ninfo Generated app size:\n{\"/Users/kudo/RNApp/android/app/build/outputs/apk/release/app-release.apk\":19603464}\n```\n\n### react-native measure-ios\nMeasure from run-ios output\nNote that the command in fact to patch AppDelegate to log some information after 5 seconds from launch.\nThe information are from RCTPerformanceLogger and task memory.\n\n```sh\n$ react-native measure-ios --configuration Release --no-packager\ninfo Found Xcode workspace \"RNApp.xcworkspace\"\ninfo Launching iPhone X (iOS 12.4)\ninfo Building (using \"xcodebuild -workspace RNApp.xcworkspace -configuration Release -scheme RNApp -destination id=6FF18363-C213-4E59-9A83-3117EE7AE6FE\")\n▸ Compiling diy-fp.cc   \n▸ Compiling bignum.cc     \n▸ Compiling cached-powers.cc                                        \n▸ Compiling double-conversion.cc\n...\ninfo Launching \"org.reactjs.native.example.RNApp\"\nsuccess Successfully launched the app on the simulator\ninfo Measurement result:\n{\n    \"duration.RCTPLScriptDownload\": \"2\",\n    \"duration.RCTPLScriptExecution\": \"181\",\n    \"duration.RCTPLRAMBundleLoad\": \"0\",\n    \"duration.RCTPLRAMStartupCodeSize\": \"0\",\n    \"duration.RCTPLRAMStartupNativeRequires\": \"0\",\n    \"duration.RCTPLRAMStartupNativeRequiresCount\": \"0\",\n    \"duration.RCTPLRAMNativeRequires\": \"0\",\n    \"duration.RCTPLRAMNativeRequiresCount\": \"0\",\n    \"duration.RCTPLNativeModuleInit\": \"2\",\n    \"duration.RCTPLNativeModuleMainThread\": \"56\",\n    \"duration.RCTPLNativeModulePrepareConfig\": \"0\",\n    \"duration.RCTPLNativeModuleMainThreadUsesCount\": \"4\",\n    \"duration.RCTPLNativeModuleSetup\": \"0\",\n    \"duration.RCTPLTurboModuleSetup\": \"0\",\n    \"duration.RCTPLJSCWrapperOpenLibrary\": \"0\",\n    \"duration.RCTPLBridgeStartup\": \"284\",\n    \"duration.RCTPLTTI\": \"474\",\n    \"duration.RCTPLBundleSize\": \"652466\",\n    \"memory\": \"55541760\"\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkudo%2Freact-native-cli-plugin-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkudo%2Freact-native-cli-plugin-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkudo%2Freact-native-cli-plugin-benchmark/lists"}