Process to output is very slow

HelloWorld text in log file processing is too slow. takes 10 seconds to output.
here is the details
logstash --path.settings=/etc/logstash -f test1.conf
input {
file {
path => ["/root/input.log"]
start_position=>"beginning"

}
}

output {
file {
path => ["/root/output.log"]
}
}

echo "Hello World" > /root/input.log

logstash.yml

pipeline:
batch:
size: 125
delay: 3
path.data: /var/lib/logstash
pipeline.workers: 2
pipeline.output.workers: 1
path.config: /etc/logstash/conf.d
config.test_and_exit: true
config.reload.interval: 1

  • debug
    path.logs: /var/log/logstash