add benchmark file

This commit is contained in:
Maximilian Keßler 2022-01-25 21:10:51 +01:00
parent 1d4817822e
commit eb8996c192

View File

@ -0,0 +1,56 @@
\documentclass{minimal}
\usepackage{groupthm}
\usepackage{fancythm}
%\usepackage{tikz}
\usepackage{l3benchmark}
\ExplSyntaxOn
\int_new:N \num
\cs_generate_variant:Nn \groupthm_new_group:nn { n V }
\cs_generate_variant:Nn \groupthm_new_theorem:nnn { n V n }
\cs_generate_variant:Nn \groupthm_new_family:nnn { n V n }
\cs_generate_variant:Nn \fancythm_new_theorem:nn { n V }
% \benchmark:n
% {
% \groupthm_new_group:nV {} { \num }
% \int_incr:N \num
% }
%
\benchmark:n
{
\groupthm_new_theorem:nVn {} { \num } \c_false_bool
\int_incr:N \num
}
%
% \benchmark:n
% {
% \groupthm_new_family:nVn {} { \num } \c_false_bool
% \int_incr:N \num
% }
%
%
% \benchmark:n
% {
% \fancythm_new_theorem:nV {} { \num }
% \int_incr:N \num
% }
% \benchmark:n
% {
% \declaretheorem{\int_use:N \num}
% \int_incr:N \num
% }
\ExplSyntaxOff
\begin{document}
foo
\end{document}