Each table row shows performance measurements for this Pyston program with a particular command-line input value N.
| N | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|
Read the ↓ make, command line, and program output logs to see how this program was run.
Read reverse-complement benchmark to see what this program should do.
# The Computer Language Benchmarks Game
# http://benchmarksgame.alioth.debian.org/
#
# contributed by Jacob Lee, Steven Bethard, et al
# 2to3, fixed by Daniele Varrazzo
# modified by Daniel Nanz
import sys, string
def show(seq, table=string.maketrans(b'ACBDGHKMNSRUTWVYacbdghkmnsrutwvy',
b'TGVHCDMKNSYAAWBRTGVHCDMKNSYAAWBR'),
write=sys.stdout.write, nl=b'\n'):
[header, s] = seq.split(nl, 1)
s = s.translate(table, nl)[: : -1]
write(b'>' + header + nl)
for i in range(0, len(s), 60):
write(s[i : i + 60] + nl)
def main():
seqs = b''.join([line for line in sys.stdin]).split(b'>')[1 : ]
for seq in seqs:
show(seq)
main()
Wed, 28 Sep 2022 09:31:11 GMT
COMMAND LINE:
/usr/bin/pyston revcomp.pyston-4.pyston 0 < revcomp-input1000.txt
PROGRAM FAILED
PROGRAM OUTPUT:
Traceback (most recent call last):
File "revcomp.pyston-4.pyston", line 11, in <module>
def show(seq, table=string.maketrans(b'ACBDGHKMNSRUTWVYacbdghkmnsrutwvy',
AttributeError: module 'string' has no attribute 'maketrans'