aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-12-12 05:53:16 -0600
committerRob Landley <rob@landley.net>2020-12-12 05:53:16 -0600
commit769b8a1c42a1c44fec930795fd3ce8799ec39537 (patch)
tree6bcce118c15233b963e6edd95ecb9a964926a8ea /tests
parent67476b1b3d9462c0fddb4b95c173dc76ea1c933c (diff)
downloadtoybox-769b8a1c42a1c44fec930795fd3ce8799ec39537.tar.gz
Speed up seq: use toybuf for block writes and add an integer fast path.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/seq.test2
1 files changed, 2 insertions, 0 deletions
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" "" "" ""