Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
6110b385
Commit
6110b385
authored
Apr 24, 2015
by
furunkel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output PNG instead of PDF
parent
105f1f38
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
.gitignore
.gitignore
+1
-0
benchmark/plot.gpl
benchmark/plot.gpl
+1
-1
tasks/benchmark.rake
tasks/benchmark.rake
+5
-6
No files found.
.gitignore
View file @
6110b385
...
...
@@ -4,6 +4,7 @@
*.o
/benchmark/**/*.dat
/benchmark/*.pdf
/benchmark/*.png
*.orig
*.pdb
*.rej
...
...
benchmark/plot.gpl
View file @
6110b385
set yrange [0:]
set terminal p
df font 'Sans, 3'
set terminal p
ngcairo font 'Sans, 8' lw 1 size 1400,1024
set xtics rotate by -45
set style histogram errorbars gap 2 lw 1
set style fill solid border -1
tasks/benchmark.rake
View file @
6110b385
...
...
@@ -8,10 +8,6 @@ def bm_files
Dir
.
glob
(
"
#{
MRUBY_ROOT
}
/benchmark/bm_*.rb"
)
end
def
plot_file
File
.
join
(
MRUBY_ROOT
,
'benchmark'
,
'bm.pdf'
)
end
def
build_config_name
if
ENV
[
'MRUBY_CONFIG'
]
File
.
basename
(
ENV
[
'MRUBY_CONFIG'
],
'.rb'
).
gsub
(
'build_config_'
,
''
)
...
...
@@ -20,13 +16,17 @@ def build_config_name
end
end
def
plot_file
File
.
join
(
MRUBY_ROOT
,
'benchmark'
,
"
#{
build_config_name
}
.png"
)
end
def
plot
opts_file
=
"
#{
MRUBY_ROOT
}
/benchmark/plot.gpl"
opts
=
File
.
read
(
opts_file
).
each_line
.
to_a
.
map
(
&
:strip
).
join
(
';'
)
dat_files
=
$dat_files
.
group_by
{
|
f
|
File
.
dirname
(
f
).
split
(
File
::
SEPARATOR
)[
-
1
]}
opts
+=
";set output '
#{
File
.
join
(
MRUBY_ROOT
,
'benchmark'
,
"
#{
build_config_name
}
.pdf"
)
}
'"
opts
+=
";set output '
#{
plot_file
}
'"
opts
+=
';plot '
...
...
@@ -37,7 +37,6 @@ def plot
cmd
=
%Q{gnuplot -p -e "
#{
opts
}
"}
p
cmd
IO
.
popen
(
cmd
,
'w'
)
do
|
p
|
dat_files
.
each
do
|
target_name
,
bm_files
|
p
.
puts
target_name
.
gsub
(
'_'
,
'-'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment