about summary refs log tree commit diff
path: root/benchtests/sprintf-inputs
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@systemhalted.org>2015-05-21 10:01:34 -0400
committerCarlos O'Donell <carlos@systemhalted.org>2015-05-21 10:02:52 -0400
commit608f897106eb10d3b250fae88478b3b1ac3999d5 (patch)
tree60c56f5149287bc597771ed8a57ff47d25ed9d3f /benchtests/sprintf-inputs
parent2212c1420c92a33b0e0bd9a34938c9814a56c0f7 (diff)
downloadglibc-608f897106eb10d3b250fae88478b3b1ac3999d5.tar.gz
glibc-608f897106eb10d3b250fae88478b3b1ac3999d5.tar.xz
glibc-608f897106eb10d3b250fae88478b3b1ac3999d5.zip
Add sprintf benchmark.
Tests position and non-positional arguments with two
test string.
Diffstat (limited to 'benchtests/sprintf-inputs')
-rw-r--r--benchtests/sprintf-inputs10
1 files changed, 10 insertions, 0 deletions
diff --git a/benchtests/sprintf-inputs b/benchtests/sprintf-inputs
new file mode 100644
index 0000000000..9a7710d31f
--- /dev/null
+++ b/benchtests/sprintf-inputs
@@ -0,0 +1,10 @@
+## args: char *:const char *:int:char:char:char:char:char:const char *:float:unsigned int
+## ret: int
+## includes: stdio.h
+## include-sources: sprintf-source.c
+## name: positional
+# Test positional arguments:
+buf, FORMAT1, 1001, '1', '2', '3', '4', '5', "string", 1.5, 0x1234
+## name: non-positional
+# Test non-positional arguments:
+buf, FORMAT2, 1001, '1', '2', '3', '4', '5', "string", 1.5, 0x1234