diff --git a/benchs/each_provider.sh b/benchs/each_provider.sh new file mode 100755 index 000000000..0549bb54b --- /dev/null +++ b/benchs/each_provider.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# for each provider +grep -lr "< Fog::Service$" lib/fog | xargs -L1 dirname | sort | uniq | sed -e 's/lib\///' | + # trigger rubygem cost then benchmark the load time + xargs -I{} ruby -Ilib -rbenchmark -e 'Gem::Specification._all; puts "{}: #{Benchmark.realtime{require "{}" }}"' diff --git a/benchs/each_service.sh b/benchs/each_service.sh new file mode 100755 index 000000000..134e7f624 --- /dev/null +++ b/benchs/each_service.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# for each service +grep -lr "< Fog::Service$" lib/fog | sed -e 's/lib\///' -e 's/.rb$//' | + # trigger rubygem cost then benchmark the load time + xargs -I{} ruby -Ilib -rbenchmark -e 'Gem::Specification._all; puts "{}: #{Benchmark.realtime{ require "{}" }}"'