From 769b8a1c42a1c44fec930795fd3ce8799ec39537 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 12 Dec 2020 05:53:16 -0600 Subject: Speed up seq: use toybuf for block writes and add an integer fast path. --- tests/seq.test | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/seq.test b/tests/seq.test index 15a208bb..4284617d 100755 --- a/tests/seq.test +++ b/tests/seq.test @@ -69,3 +69,5 @@ testing "invalid increment" "seq 1 1f 1 2>/dev/null || echo y" "y\n" "" "" # TODO: busybox fails this too, but GNU seems to not use double for large ints. #testing "too large for double" "seq -s, 9007199254740991 1 9007199254740992" "9007199254740992\n" "" "" + +testing "fast path" "timeout 10 seq 10000000 > /dev/null" "" "" "" -- cgit v1.2.3