Sha256: d1986c8a99a2562397a8cc3226b80c9f80625e5f662e6681267098d5c9f3b863

Contents?: true

Size: 496 Bytes

Versions: 28

Compression:

Stored size: 496 Bytes

Contents

#!/bin/sh

socatopt="-t 4 -T 4 -b 8193 -d -d "

get_commands=""

# build
for i in `seq 1 128`; do
    if [ `expr $i % 2` -eq "0" ]; then
        key="foo"
    else
        key="bar"
    fi
    key=`printf "%s%d" "${key}" "${i}"`

    get_command="get ${key}\r\n"
    get_commands=`printf "%s%s" "${get_commands}" "${get_command}"`
done

# read
for i in `seq 1 64`; do
    printf "%b" "$get_commands" | socat ${socatopt} - TCP:localhost:22123,nodelay,shut-none,nonblock=1 1> /dev/null 2>&1 &
done

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
nutcracker-0.4.1.23 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.4.1.22 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.4.1.21 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.4.1.20 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.4.1.19 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.4.1.18 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.4.0.16 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.4.0.15 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.4.0.14 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.4.0.13 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.3.0.12 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.2.4.12 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.2.4.11 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.2.4.10 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.2.4.10mac ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.2.4.9 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.2.4.mac9 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.2.4.8 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.2.4.7 ext/nutcracker/scripts/pipelined_read.sh
nutcracker-0.2.4.6 ext/nutcracker/scripts/pipelined_read.sh