{"id":19415716,"url":"https://github.com/shivansh/go-cp","last_synced_at":"2026-04-11T16:40:23.523Z","repository":{"id":67090488,"uuid":"114096676","full_name":"shivansh/go-cp","owner":"shivansh","description":"A minimal version of the command line utility cp(1).","archived":false,"fork":false,"pushed_at":"2019-03-31T13:56:11.000Z","size":16,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T03:14:46.052Z","etag":null,"topics":["cp","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/shivansh.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-12-13T08:51:14.000Z","updated_at":"2019-03-31T14:38:48.000Z","dependencies_parsed_at":"2023-05-06T05:15:34.378Z","dependency_job_id":null,"html_url":"https://github.com/shivansh/go-cp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shivansh/go-cp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivansh%2Fgo-cp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivansh%2Fgo-cp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivansh%2Fgo-cp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivansh%2Fgo-cp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shivansh","download_url":"https://codeload.github.com/shivansh/go-cp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivansh%2Fgo-cp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31687881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["cp","golang"],"created_at":"2024-11-10T12:44:23.333Z","updated_at":"2026-04-11T16:40:23.501Z","avatar_url":"https://github.com/shivansh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-cp\nGolang version of the command line utility `cp(1)`.  \nMade just for fun to benchmark performance (and take a first stab at Golang).\n\n## Usage\n```\n./go-cp SOURCE DEST\n```\n**NOTE:** Recursive copying and clobbering is enabled by default.\n\n## Benchmarks\nThe following benchmarks were recorded for a file of size 1.5G on a 4-core machine, coreutils version `8.26`.\n\n* Destination file does not exist -\n\n  |       | user (s) | system (s) | CPU (%) | total (s) |\n  |:-----:|:--------:|:----------:|:-------:|:---------:|\n  |   cp  |   0.00   |    0.93    |    99   |   0.933   |\n  | go-cp |   0.02   |    0.94    |    99   |   0.957   |\n\n* Destination file exists _(I'm interested in figuring out the cause of these stats!)_ -\n\n  |       | user (s) | system (s) | CPU (%) | total (s) |\n  |:-----:|:--------:|:----------:|:-------:|:---------:|\n  |   cp  |   0.00   |    1.34    |    10   |  12.809   |\n  | go-cp |   0.01   |    0.63    |    99   |   0.642   |\n\n## Notes\nThe following points are noted for the second case (destination file exists) -\n* Performance gain for `go-cp` and the corresponding loss for `cp(1)` is quite noticeable.\n* CPU utilization for `cp(1)` is quite low as compared to first.\n* It's worth mentioning that before running either of the utilities, `sync` was run to synchronize cached writes. Moreover, the difference in the total durations is still as significant as above if the caches are dropped via `echo 3 \u003e /proc/sys/vim/drop_caches`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivansh%2Fgo-cp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivansh%2Fgo-cp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivansh%2Fgo-cp/lists"}