railsbench 0.8.4 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +523 -0
- data/INSTALL +18 -9
- data/Manifest.txt +38 -38
- data/README +6 -6
- data/Rakefile +52 -51
- data/bin/railsbench +48 -50
- data/config/benchmarking.rb +18 -5
- data/install.rb +2 -2
- data/lib/railsbench/perf_utils.rb +114 -0
- data/lib/railsbench/railsbenchmark.rb +9 -2
- data/lib/railsbench/version.rb +2 -2
- data/postinstall.rb +12 -0
- data/script/perf_bench +5 -9
- data/script/perf_comp +0 -4
- data/script/perf_comp_gc +7 -11
- data/script/perf_diff +46 -46
- data/script/perf_diff_gc +39 -75
- data/script/perf_html +0 -4
- data/script/perf_plot +0 -4
- data/script/perf_plot_gc +5 -6
- data/script/perf_prof +61 -44
- data/script/perf_run +31 -26
- data/script/perf_run_gc +38 -44
- data/script/perf_tex +1 -5
- data/script/perf_times +2 -6
- data/script/perf_times_gc +0 -4
- data/script/run_urls +7 -6
- data/setup.rb +1585 -1585
- metadata +3 -3
- data/script/perf_loop +0 -38
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: railsbench
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2006-12-
|
6
|
+
version: 0.9.0
|
7
|
+
date: 2006-12-26 00:00:00 +01:00
|
8
8
|
summary: rails benchmarking tools
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- CHANGELOG
|
34
34
|
- INSTALL
|
35
35
|
- install.rb
|
36
|
+
- postinstall.rb
|
36
37
|
- LICENSE
|
37
38
|
- Manifest.txt
|
38
39
|
- README
|
@@ -54,7 +55,6 @@ files:
|
|
54
55
|
- script/perf_diff
|
55
56
|
- script/perf_diff_gc
|
56
57
|
- script/perf_html
|
57
|
-
- script/perf_loop
|
58
58
|
- script/perf_plot
|
59
59
|
- script/perf_plot_gc
|
60
60
|
- script/perf_prof
|
data/script/perf_loop
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
# set -x
|
3
|
-
|
4
|
-
BINDIR=`dirname $0`
|
5
|
-
test -z $RAILS_PERF_RUNS && RAILS_PERF_RUNS=3
|
6
|
-
|
7
|
-
FILE=$RAILS_BENCHMARK_FILE
|
8
|
-
if [ "$OSTYPE" == "cygwin" ]; then
|
9
|
-
RAILS_BENCHMARK_FILE=`cygpath -m $FILE`
|
10
|
-
fi
|
11
|
-
|
12
|
-
unset RUBY_GC_STATS
|
13
|
-
|
14
|
-
echo "benchmarking $RAILS_PERF_RUNS runs with options $@"
|
15
|
-
echo "$BINDIR/perf_bench $@" >$FILE
|
16
|
-
|
17
|
-
patched_gc="no"
|
18
|
-
for arg in $@; do
|
19
|
-
case $arg in
|
20
|
-
-gc=*) patched_gc=${arg#-gc=};;
|
21
|
-
esac
|
22
|
-
done
|
23
|
-
|
24
|
-
if [ "${patched_gc}" = "no" ]; then
|
25
|
-
unset RUBY_HEAP_MIN_SLOTS RUBY_GC_MALLOC_LIMIT RUBY_HEAP_FREE_MIN
|
26
|
-
else
|
27
|
-
. $RAILS_ROOT/config/${patched_gc}.gc
|
28
|
-
export RUBY_HEAP_MIN_SLOTS RUBY_GC_MALLOC_LIMIT RUBY_HEAP_FREE_MIN
|
29
|
-
fi
|
30
|
-
|
31
|
-
i=$(( $RAILS_PERF_RUNS ))
|
32
|
-
while [ $i -gt 0 ]; do
|
33
|
-
i=$(( $i-1 ))
|
34
|
-
ruby $BINDIR/perf_bench $@ >/dev/null || exit 1
|
35
|
-
done
|
36
|
-
echo >>$FILE
|
37
|
-
|
38
|
-
# echo "performance data written to file $RAILS_BENCHMARK_FILE"
|