summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2023-03-04 17:17:52 +0100
committerHans de Graaff <hans@degraaff.org>2023-04-09 09:37:01 +0200
commit74473a3917561dfa1b3e83eba8659f5f3fc6e478 (patch)
tree87116152bd3c1d2f4e0c28bac5117b48174ae769
parentAdd support for ruby32 (diff)
downloadruby-scripts-74473a3917561dfa1b3e83eba8659f5f3fc6e478.tar.gz
ruby-scripts-74473a3917561dfa1b3e83eba8659f5f3fc6e478.tar.bz2
ruby-scripts-74473a3917561dfa1b3e83eba8659f5f3fc6e478.zip
Add ruby32 to statistics scripts
Also use different colors for each ruby version. Signed-off-by: Hans de Graaff <hans@degraaff.org>
-rw-r--r--ruby-stats/plot5
-rwxr-xr-xruby-stats/ruby_stats.py4
2 files changed, 6 insertions, 3 deletions
diff --git a/ruby-stats/plot b/ruby-stats/plot
index 1aeeca0..8f25d7b 100644
--- a/ruby-stats/plot
+++ b/ruby-stats/plot
@@ -28,5 +28,6 @@ plot "data.txt" using 1:3 with lines lt 2 title "total", \
"data.txt" using 1:14 with lines lt 1 lc 11 title "ruby25", \
"data.txt" using 1:15 with lines lt 1 lc 12 title "ruby26", \
"data.txt" using 1:16 with lines lt 1 lc 13 title "ruby27", \
- "data.txt" using 1:17 with lines lt 1 lc 13 title "ruby30", \
- "data.txt" using 1:18 with lines lt 1 lc 13 title "ruby31"
+ "data.txt" using 1:17 with lines lt 1 lc 14 title "ruby30", \
+ "data.txt" using 1:18 with lines lt 1 lc 15 title "ruby31", \
+ "data.txt" using 1:19 with lines lt 1 lc 16 title "ruby32"
diff --git a/ruby-stats/ruby_stats.py b/ruby-stats/ruby_stats.py
index ff6f8a5..4e63b55 100755
--- a/ruby-stats/ruby_stats.py
+++ b/ruby-stats/ruby_stats.py
@@ -9,7 +9,7 @@ bins = ('ruby', 'ruby-ng', 'ruby_targets_ruby18', 'ruby_targets_ruby19',
'ruby_targets_rbx', 'ruby_targets_ruby21', 'ruby_targets_ruby22',
'ruby_targets_ruby23', 'ruby_targets_ruby24', 'ruby_targets_ruby25',
'ruby_targets_ruby26', 'ruby_targets_ruby27', 'ruby_targets_ruby30',
- 'ruby_targets_ruby31')
+ 'ruby_targets_ruby31', 'ruby_targets_ruby32')
import sys
import time
@@ -63,6 +63,8 @@ def main():
stats['ruby_targets_ruby30'].add(cpv)
if 'ruby_targets_ruby31' in iuse:
stats['ruby_targets_ruby31'].add(cpv)
+ if 'ruby_targets_ruby32' in iuse:
+ stats['ruby_targets_ruby32'].add(cpv)
if 'ruby_targets_jruby' in iuse:
stats['ruby_targets_jruby'].add(cpv)
if 'ruby_targets_ree18' in iuse: