Mitleser: Einsatz von XHTML

Beitrag lesen

Schwätzer. Was macht denn Dein konkretes Benchmark? Bitte Ergebnis!

time perl test.pl

real 0m0.229s user 0m0.179s sys 0m0.050s

test.pl:

#!/usr/bin/perl
use strict;
use warnings;
use JSON ();

my $json = '';
open (INFILE, '<:utf8', 'selfwiki.bin') or die $!;
while (<INFILE>) {
	$json .= $_;
}
close INFILE;

my $data = JSON->new()->decode($json);

print "done\n";