Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
e4b6e02c
Commit
e4b6e02c
authored
Aug 25, 2014
by
Maxime Perrotin
Browse files
Merge pull request #25 from dbrabera/extended_benchmark_summary
Strip binaries in benchmarks
parents
164cd109
4eed812e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/regression/benchmark.py
View file @
e4b6e02c
...
...
@@ -41,8 +41,8 @@ def benchmark(testfolder):
result
=
{
"name"
:
testfolder
[:
-
1
],
"size"
:
{
"ada"
:
os
.
path
.
get
size
(
llvm_bin
),
"llvm"
:
os
.
path
.
get
size
(
ada_bin
),
"ada"
:
size
(
llvm_bin
),
"llvm"
:
size
(
ada_bin
),
},
"time"
:
{
"ada"
:
time
(
ada_bin
),
...
...
@@ -53,6 +53,11 @@ def benchmark(testfolder):
return
result
def
size
(
file
):
call
([
"strip"
,
os
.
path
.
abspath
(
file
)])
return
os
.
path
.
getsize
(
file
)
def
time
(
file
,
iters
=
1000
):
start
=
t
.
time
()
call
([
"/bin/bash"
,
"-c"
,
"for i in {1..%s} ; do %s ; done"
%
(
iters
,
file
)])
...
...
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