Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
grumpy
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
grumpy
Commits
c6e8ffa4
Commit
c6e8ffa4
authored
May 11, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
41705722
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
pystone
pystone
+0
-3
pystone-run
pystone-run
+4
-0
pystone.go
pystone.go
+4
-4
pystone.py
pystone.py
+2
-2
No files found.
pystone
deleted
100755 → 0
View file @
41705722
#!/bin/sh -e
grumpc pystone.py
>
pystone.go
&&
go run pystone.go
pystone-run
0 → 100755
View file @
c6e8ffa4
#!/bin/sh -e
export
GRUMPY_PROFILE
=
cpu.out
grumpc pystone.py
>
pystone.go
&&
go build pystone.go
&&
./pystone
pystone.go
View file @
c6e8ffa4
...
@@ -477,7 +477,7 @@ func initModule(πF *πg.Frame, _ []*πg.Object) (*πg.Object, *πg.BaseExceptio
...
@@ -477,7 +477,7 @@ func initModule(πF *πg.Frame, _ []*πg.Object) (*πg.Object, *πg.BaseExceptio
}
}
µbenchtime
=
πTemp002
µbenchtime
=
πTemp002
µstones
=
πTemp004
µstones
=
πTemp004
// line 66: print "Pystone(%s) time for %d passes = %
g
" % \
// line 66: print "Pystone(%s) time for %d passes = %
f
" % \
πF
.
SetLineno
(
66
)
πF
.
SetLineno
(
66
)
πTemp001
=
make
([]
*
πg
.
Object
,
1
)
πTemp001
=
make
([]
*
πg
.
Object
,
1
)
if
πTemp004
,
πE
=
πg
.
ResolveGlobal
(
πF
,
ß__version__
);
πE
!=
nil
{
if
πTemp004
,
πE
=
πg
.
ResolveGlobal
(
πF
,
ß__version__
);
πE
!=
nil
{
...
@@ -490,20 +490,20 @@ func initModule(πF *πg.Frame, _ []*πg.Object) (*πg.Object, *πg.BaseExceptio
...
@@ -490,20 +490,20 @@ func initModule(πF *πg.Frame, _ []*πg.Object) (*πg.Object, *πg.BaseExceptio
continue
continue
}
}
πTemp003
=
πg
.
NewTuple3
(
πTemp004
,
µloops
,
µbenchtime
)
.
ToObject
()
πTemp003
=
πg
.
NewTuple3
(
πTemp004
,
µloops
,
µbenchtime
)
.
ToObject
()
if
πTemp002
,
πE
=
πg
.
Mod
(
πF
,
πg
.
NewStr
(
"Pystone(%s) time for %d passes = %
g
"
)
.
ToObject
(),
πTemp003
);
πE
!=
nil
{
if
πTemp002
,
πE
=
πg
.
Mod
(
πF
,
πg
.
NewStr
(
"Pystone(%s) time for %d passes = %
f
"
)
.
ToObject
(),
πTemp003
);
πE
!=
nil
{
continue
continue
}
}
πTemp001
[
0
]
=
πTemp002
πTemp001
[
0
]
=
πTemp002
if
πE
=
πg
.
Print
(
πF
,
πTemp001
,
true
);
πE
!=
nil
{
if
πE
=
πg
.
Print
(
πF
,
πTemp001
,
true
);
πE
!=
nil
{
continue
continue
}
}
// line 68: print "This machine benchmarks at %
g
pystones/second" % stones
// line 68: print "This machine benchmarks at %
f
pystones/second" % stones
πF
.
SetLineno
(
68
)
πF
.
SetLineno
(
68
)
πTemp001
=
make
([]
*
πg
.
Object
,
1
)
πTemp001
=
make
([]
*
πg
.
Object
,
1
)
if
πE
=
πg
.
CheckLocal
(
πF
,
µstones
,
"stones"
);
πE
!=
nil
{
if
πE
=
πg
.
CheckLocal
(
πF
,
µstones
,
"stones"
);
πE
!=
nil
{
continue
continue
}
}
if
πTemp002
,
πE
=
πg
.
Mod
(
πF
,
πg
.
NewStr
(
"This machine benchmarks at %
g
pystones/second"
)
.
ToObject
(),
µstones
);
πE
!=
nil
{
if
πTemp002
,
πE
=
πg
.
Mod
(
πF
,
πg
.
NewStr
(
"This machine benchmarks at %
f
pystones/second"
)
.
ToObject
(),
µstones
);
πE
!=
nil
{
continue
continue
}
}
πTemp001
[
0
]
=
πTemp002
πTemp001
[
0
]
=
πTemp002
...
...
pystone.py
View file @
c6e8ffa4
...
@@ -63,9 +63,9 @@ FALSE = 0
...
@@ -63,9 +63,9 @@ FALSE = 0
def
main
(
loops
=
LOOPS
):
def
main
(
loops
=
LOOPS
):
benchtime
,
stones
=
pystones
(
loops
)
benchtime
,
stones
=
pystones
(
loops
)
print
"Pystone(%s) time for %d passes = %
g
"
%
\
print
"Pystone(%s) time for %d passes = %
f
"
%
\
(
__version__
,
loops
,
benchtime
)
(
__version__
,
loops
,
benchtime
)
print
"This machine benchmarks at %
g
pystones/second"
%
stones
print
"This machine benchmarks at %
f
pystones/second"
%
stones
def
pystones
(
loops
=
LOOPS
):
def
pystones
(
loops
=
LOOPS
):
...
...
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