/mobile Handheld Friendly website

 performance measurements

Each table row shows performance measurements for this JavaScript V8 program with a particular command-line input value N.

 N  CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
250,000Timed Out  390   

Read the ↓ make, command line, and program output logs to see how this program was run.

Read k-nucleotide benchmark to see what this program should do.


V8 version 3.25.20 [console: dumb]

 k-nucleotide JavaScript V8 #3 program source code

/* The Computer Language Benchmarks Game

   Contributed by Matthew Wilson

var s="";while(!/^>TH/.test(readline()));for(var i;i=readline();s+=i);
var z,o={"ggt":3,"ggta":4,"ggtatt":6,"ggtattttaatt":12,"ggtattttaatttatagt":18};
function F(l,n,t){for(var m,i=0;i<n;++t[m=s.substring(i,++i+l-1)]||(t[m]=1));}
for(var l=1;l<3;++l) {
  var j,n=s.length-l+1,f={},keys=Array(Math.pow(4,l)),k,i=-1; F(l,n,f);
  for(k in f) keys[++i] = k; keys.sort(function(a, b){ return f[b] - f[a] });
for(var i in o)F(z=o[i],s.length-z+1,z={}),print((z[i]||0)+"\t"+i.toUpperCase())

 make, command-line, and program output logs

Thu, 20 Mar 2014 13:03:20 GMT

/usr/local/src/v8/out/native/d8 --nodebugger knucleotide.v8-3.v8 -- 0 < knucleotide-input250000.txt

TIMED OUT after 300s

A 30.298
T 30.157
C 19.793
G 19.752

AA 9.177
TA 9.137
AT 9.136
TT 9.094
AC 6.000
CA 5.999
GA 5.986
AG 5.985
TC 5.970
CT 5.970
GT 5.957
TG 5.956
CC 3.915
CG 3.910
GC 3.908
GG 3.902

14717	GGT
4463	GGTA

Revised BSD license

  Home   Conclusions   License   Play