Skip to content

Commit 2db29ea

Browse files
committed
Merge remote-tracking branch 'origin/master' into wip/no-extend-narrow-primop-names
2 parents e84ad76 + 2f88390 commit 2db29ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+573
-396
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@
88
/GNUmakefile
99
/.ghc.environment.*
1010
/cabal.project.local
11+
/cabal.test.project.local
12+
13+
# Test data repo ignored. Please see instruction in tests-and-benchmarks.markdown
14+
/tests/text-test-data/

.travis.yml

Lines changed: 102 additions & 58 deletions
Large diffs are not rendered by default.

benchmarks/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE

benchmarks/cbits

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../cbits
File renamed without changes.

benchmarks/include

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../include

benchmarks/python/cut.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import utils, sys, codecs
44

benchmarks/python/multilang.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import math
44
import sys
@@ -12,23 +12,22 @@ def timer(f, count=100):
1212
a = 1e300
1313
def g():
1414
return
15-
for i in xrange(3):
15+
for i in range(3):
1616
start = time.time()
17-
for j in xrange(count):
17+
for j in range(count):
1818
g()
1919
a = min(a, (time.time() - start) / count)
2020

2121
b = 1e300
22-
for i in xrange(3):
22+
for i in range(3):
2323
start = time.time()
24-
for j in xrange(count):
24+
for j in range(count):
2525
f()
2626
b = min(b, (time.time() - start) / count)
2727

2828
return round(b - a, int(round(math.log(count, 10) - math.log(b - a, 10))))
2929

3030
contents = open('../../tests/text-test-data/yiwiki.xml', 'r').read()
31-
contents = contents.decode('utf-8')
3231

3332
benchmarks = (
3433
find_first,
@@ -47,4 +46,4 @@ def g():
4746
for b in bms:
4847
sys.stdout.write(b.__name__ + ' ')
4948
sys.stdout.flush()
50-
print b()
49+
print(b())

benchmarks/python/sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import utils, sys, codecs
44

benchmarks/python/strip_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import utils, sys
44

0 commit comments

Comments
 (0)