/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,000401.16401.34270,168390  0% 0% 0% 100%
2,500,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.

 notes

V8 version 3.25.20 [console: dumb]

 k-nucleotide JavaScript V8 #3 program source code

/* The Computer Language Benchmarks Game
   http://benchmarksgame.alioth.debian.org/

   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(j=0;j<=i;print(keys[j].toUpperCase(),(f[keys[j++]]*100/n).toFixed(3)));
  print();
}
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 05:57:51 GMT

COMMAND LINE:
/usr/local/src/v8/out/native/d8 --nodebugger knucleotide.v8-3.v8 -- 0 < knucleotide-input2500000.txt

TIMED OUT after 3600s


PROGRAM OUTPUT:

Revised BSD license

  Home   Conclusions   License   Play