Last active
August 29, 2015 13:59
-
-
Save lestrrat/10952980 to your computer and use it in GitHub Desktop.
trying out go wrapper + cpanm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DockerでCPANインストール祭りを繰り返してたらいい加減cpanmとかに並列処理が欲しくなってきた。 | |
# で、とりあえずgoでラッパーを作って、 | |
# 1) 先にMETA.yamlを読み込み、依存関係を解析 | |
# 2) キューに突っ込んで goroutineでそれぞれcpanmを起動してインストール | |
# という簡単な処理をしてみてどういう差が出るかやってみた | |
# | |
# 試すには go install github.com/lestrrat/go-cpan-maybe-faster/cli/go-cpan | |
# https://github.com/lestrrat/go-cpan-maybe-faster | |
$ time go-cpan --notest --local-lib-contained=local Moose | |
real 0m29.484s | |
user 1m5.647s | |
sys 0m15.804s | |
$ time cpanm --notest --local-lib-contained=local Moose | |
real 1m15.505s | |
user 0m24.820s | |
sys 0m6.603s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment