Skip to content

Commit 34d07e2

Browse files
committed
General updates to benchmark suite
1 parent b18eae7 commit 34d07e2

26 files changed

+1802
-694
lines changed

exprtk/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# **************************************************************
33
# * C++ Mathematical Expression Toolkit Library *
44
# * *
5-
# * Author: Arash Partow (1999-2018) *
5+
# * Author: Arash Partow (1999-2019) *
66
# * URL: http://www.partow.net/programming/exprtk/index.html *
77
# * *
88
# * Copyright notice: *
@@ -16,7 +16,7 @@
1616

1717

1818
COMPILER := -c++
19-
#COMPILER := -clang
19+
#COMPILER := -clang++
2020
OPTIMIZATION_OPT := -O1
2121
BASE_OPTIONS := -pedantic-errors -Wall -Wextra -Werror -Wno-long-long
2222
OPTIONS := $(BASE_OPTIONS) $(OPTIMIZATION_OPT)

exprtk/exprtk.hpp

Lines changed: 1164 additions & 643 deletions
Large diffs are not rendered by default.

exprtk/exprtk_benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* ExprTk vs Native Benchmarks *
6-
* Author: Arash Partow (1999-2018) *
6+
* Author: Arash Partow (1999-2019) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_functional_test.txt

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8093,4 +8093,75 @@ equal(~{var xx[10^5] := [-3]; var yy[10^5] := [-4]; xx := 2 * abs((1 + xx) + (yy
80938093
equal(~{var xx[10^5] := [-3]; var yy[10^5] := [-4]; xx := abs((xx + 1) + (yy + 1)) * 2; sum(xx) == 10^6},true)
80948094
equal(~{var xx[10^5] := [-3]; var yy[10^5] := [-4]; xx := abs((1 + xx) + (1 + yy)) * 2; sum(xx) == 10^6},true)
80958095
equal(~{var xx[10^5] := [-3]; var yy[10^5] := [-4]; xx := abs((xx + 1) + (1 + yy)) * 2; sum(xx) == 10^6},true)
8096-
equal(~{var xx[10^5] := [-3]; var yy[10^5] := [-4]; xx := abs((1 + xx) + (yy + 1)) * 2; sum(xx) == 10^6},true)
8096+
equal(~{var xx[10^5] := [-3]; var yy[10^5] := [-4]; xx := abs((1 + xx) + (yy + 1)) * 2; sum(xx) == 10^6},true)
8097+
equal('abcd' like 'abcd*' , true )
8098+
equal('abcd' like 'abc*' , true )
8099+
equal('abcd' like 'ab*' , true )
8100+
equal('abcd' like 'a*' , true )
8101+
equal('abcd' like 'abcd?' , true )
8102+
equal('abcd' like 'abc?' , true )
8103+
equal('abcd' like 'abc??' , true )
8104+
equal('abcd' like 'ab???' , true )
8105+
equal('abcd' like 'a????' , true )
8106+
equal('abcd' like '?????' , true )
8107+
equal('a' like 'a*' , true )
8108+
equal('ab' like 'a*' , true )
8109+
equal('abcd' like 'abcd*' , true )
8110+
equal('' like '' , true )
8111+
equal('abcd' like 'abcd' , true )
8112+
equal('abcd' like 'abc*' , true )
8113+
equal('abcd' like '*bcd' , true )
8114+
equal('abcd' like 'abc?' , true )
8115+
equal('abcd' like '?bcd' , true )
8116+
equal('abcd' like 'ab?d' , true )
8117+
equal('abcd' like 'ab*d' , true )
8118+
equal('abcd' like 'a?cd' , true )
8119+
equal('abcd' like 'a*cd' , true )
8120+
equal('abcd' like 'a??d' , true )
8121+
equal('abcd' like 'a*?d' , true )
8122+
equal('abcd' like '*bc*' , true )
8123+
equal('abcd' like '?bc?' , true )
8124+
equal('abcd' like '????' , true )
8125+
equal('abcd' like 'a???' , true )
8126+
equal('abcd' like 'ab??' , true )
8127+
equal('abcd' like 'abc?' , true )
8128+
equal('abcd' like '???d' , true )
8129+
equal('abcd' like '??cd' , true )
8130+
equal('abcd' like '?bcd' , true )
8131+
equal('abcd' like '?b?d' , true )
8132+
equal('abcd' like 'a?c?' , true )
8133+
equal('abcd' like 'a??d' , true )
8134+
equal('abcd' like '?bc?' , true )
8135+
equal('abcd' like 'ab**' , true )
8136+
equal('abcd' like 'ab*?' , true )
8137+
equal('abcd' like 'a***' , true )
8138+
equal('abcd' like '**cd' , true )
8139+
equal('abcd' like '*?cd' , true )
8140+
equal('abcd' like '***d' , true )
8141+
equal('abcd' like '?*?d' , true )
8142+
equal('abcd' like '?*?d' , true )
8143+
equal('abcd' like '*bc*' , true )
8144+
equal('abcd' like '*bc?' , true )
8145+
equal('abcd' like '*b??' , true )
8146+
equal('abcd' like '?bc*' , true )
8147+
equal('abcd' like '??c*' , true )
8148+
equal('abcd' like '*b?*' , true )
8149+
equal('abcd' like '*b*d' , true )
8150+
equal('abcd' like 'a*c*' , true )
8151+
equal('abcd' like '?*cd' , true )
8152+
equal('abcd' like 'ab?*' , true )
8153+
equal('abcd' like 'ab*?' , true )
8154+
equal('abcd' like 'a?*d' , true )
8155+
equal('ab' like 'a*' , true )
8156+
equal('ab' like 'a?' , true )
8157+
equal('a' like 'a*' , true )
8158+
equal('a' like 'a?' , true )
8159+
equal('xalabcd' like '*abcd*' , true )
8160+
equal('xablabcd' like '*abcd*' , true )
8161+
equal('xabclabcd' like '*abcd*' , true )
8162+
equal('aaaaa' like '*aa?' , true )
8163+
equal('abcd' like 'xyzw' , false)
8164+
equal('abcd' like 'xyz' , false)
8165+
equal('abc' like 'xyzw' , false)
8166+
equal('abcd' like 'ab?' , false)
8167+
equal('abcd' like 'a?' , false)

exprtk/exprtk_simple_example_01.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 1 *
6-
* Author: Arash Partow (1999-2018) *
6+
* Author: Arash Partow (1999-2019) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_02.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 2 *
6-
* Author: Arash Partow (1999-2018) *
6+
* Author: Arash Partow (1999-2019) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_03.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 3 *
6-
* Author: Arash Partow (1999-2018) *
6+
* Author: Arash Partow (1999-2019) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_04.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 4 *
6-
* Author: Arash Partow (1999-2018) *
6+
* Author: Arash Partow (1999-2019) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_05.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 5 *
6-
* Author: Arash Partow (1999-2018) *
6+
* Author: Arash Partow (1999-2019) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_06.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 6 *
6-
* Author: Arash Partow (1999-2018) *
6+
* Author: Arash Partow (1999-2019) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

0 commit comments

Comments
 (0)