From 608f897106eb10d3b250fae88478b3b1ac3999d5 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Thu, 21 May 2015 10:01:34 -0400 Subject: Add sprintf benchmark. Tests position and non-positional arguments with two test string. --- benchtests/sprintf-inputs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 benchtests/sprintf-inputs (limited to 'benchtests/sprintf-inputs') 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 -- cgit 1.4.1