Skip to content

Instantly share code, notes, and snippets.

@lestrrat
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lestrrat/10952980 to your computer and use it in GitHub Desktop.
Save lestrrat/10952980 to your computer and use it in GitHub Desktop.
trying out go wrapper + cpanm
# 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