[cs615asa] Different answer of part2

Zhitao Chen zchen69 at stevens.edu
Sat Apr 7 12:52:52 EDT 2018


In part2, my script show correctly with the example, which is:

ip-172-31-38-144# ./wikistats data
> Unique objects: 2233318
> Most frequent object: en
> Total bytes transferred: 260243085755
> Requests per second: 3256.12
> Largest object: Module:Syrian_and_Iraqi_insurgency_detailed_map/doc


However, after submitted the script, I got the response:

ip-172-31-43-210# curl --data-binary @wikistats
> http://ec2-54-145-67-75.compute-1.amazonaws.com/cgi-bin/hw5-2.cgi
> Upload complete. Now running some tests.
> Depending on what you're doing in your script,
> this might take a moment.
> Incorrect output.
> --- your-output 2018-04-07 16:36:07.000000000 +0000
> +++ expected 2018-04-07 16:36:07.000000000 +0000
> @@ -1,5 +1,5 @@
> -Unique objects: 0
> -Most frequent object:
> -Total bytes transferred: 0
> -Requests per second: 0.00
> -Largest object:
> +Unique objects: 3084960
> +Most frequent object: en
> +Total bytes transferred: 335800504031
> +Requests per second: 3977.59
> +Largest object: User:West.andrew.g/Popular_pages
> Note: this was run against the file 'pagecounts-20160804-100000.gz'.


Then I download the data set from
https://dumps.wikimedia.org/other/pagecounts-raw/2016/2016-08/pagecounts-20160804-100000.gz(hope
it is the correct address) and ran it, I got the response:

ip-172-31-43-210# ./wikistats data2
> Unique objects: 2223243
> Most frequent object: en
> Total bytes transferred: 267566713402
> Requests per second: 3099.33
> Largest object: User:Mojoworker/SuggestBot


Anyone know why there are different answers by testing remotely and
testing locally?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs615asa/attachments/20180407/1f7b9611/attachment.html>


More information about the cs615asa mailing list