add benchmark scripts to load each provider and service independently
This commit is contained in:
parent
f9a5b9e942
commit
59292c99ad
|
@ -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 "{}" }}"'
|
|
@ -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 "{}" }}"'
|
Loading…
Reference in New Issue