Apple has a file sharing protocol AFP. We're in the process of benchmarking the network at my work and I wanted to see what block size (x-axis) made AFP xfer the fastest in b/s (y-axis).

The test I used was to dd from /dev/zero to create a file on the remote system.

#!/usr/bin/env perl
use warnings;
use strict;
$|=1;

use Time::HiRes;

my $size = 10 * 2**10;
for my $i (1 .. 2**16) {
	my $c = int($size / $i);
	my $start = Time::HiRes::time();
	system("dd if=/dev/zero of=test_file bs=$i count=$c >/dev/null 2>&1 ");
	my $end = Time::HiRes::time();
	printf "%-10d %20.2f b/s\n", $i, ($i * $c * 8 / ( $end - $start) );
}

The 2048, 5120, 10240 make sense; the peaks around 1700, 2548, 3407 less so. Any ideas?

I'm re-running this with more bytes xfer'd (10 * 2**20) and will post results tomorrow.