Skip to content

Commit

Permalink
#124 update benchmark script
Browse files Browse the repository at this point in the history
  • Loading branch information
tbela99 committed Aug 11, 2022
1 parent 2790e40 commit 88e50dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,15 @@ echo 'Rendering performance (Uncompressed)'
#
#benchmark "file${hpad}\tsize${hpad}\telement${hpad}\t\tsabber${hpad}\t\tast" "./render.php" "./renderSabberWorm.php" "./renderast.php"
# "element" involves an additional step to turn ast into element class instance, which is always slower and not fair ...
benchmark "file${hpad}\tsize${hpad}\t\tsabber${hpad}\t\tast" "./renderSabberWorm.php" "./renderast.php"
benchmark "file${hpad}\tsize${hpad}\t\tsabber${hpad}\t\tast\t\tRenderer::fromString" "./renderSabberWorm.php" "./renderast.php" "./render.php"

echo ""
echo 'Rendering performance (Compressed)'
#. ./render-compressed.sh
#
#benchmark "file${hpad}\tsize${hpad}\telement${hpad}\t\tsabber${hpad}\t\tast" "./render.php -c" "./renderSabberWorm.php -c" "./renderast.php -c"
# "element" involves an additional step to turn ast into element class instance, which is always slower and not fair ...
benchmark "file${hpad}\tsize${hpad}\t\tsabber${hpad}\t\tast" "./renderSabberWorm.php -c" "./renderast.php -c"
benchmark "file${hpad}\tsize${hpad}\t\tsabber${hpad}\t\tast\t\tRenderer::fromString" "./renderSabberWorm.php -c" "./renderast.php -c" "./render.php -c"

echo ""
#pad="\t\t"
Expand All @@ -224,12 +224,12 @@ echo 'Size (Uncompressed)'
#
#getsize "file\t${hpad}size${hpad}\telement${hpad}\t\tsabber${hpad}\t\tast" "./render.php" "./renderSabberWorm.php" "./renderast.php"
# "element" involves an additional step to turn ast into element class instance, which is always slower and not fair ...
getsize "file\t${hpad}size${hpad}\t\tsabber${hpad}\t\tast" "./renderSabberWorm.php" "./renderast.php"
getsize "file\t${hpad}size${hpad}\t\tsabber${hpad}\t\tast\t\tRenderer::fromString" "./renderSabberWorm.php" "./renderast.php" "./render.php"

echo ""
echo 'Size (Compressed)'
# . ./compressed-size.sh
#
#getsize "file\t${hpad}size${hpad}\telement${hpad}\t\tsabber${hpad}\t\tast" "./render.php -c" "./renderSabberWorm.php -c" "./renderast.php -c"
# "element" involves an additional step to turn ast into element class instance, which is always slower and not fair ...
getsize "file\t${hpad}size${hpad}\t\tsabber${hpad}\t\tast" "./renderSabberWorm.php -c" "./renderast.php -c"
getsize "file\t${hpad}size${hpad}\t\tsabber${hpad}\t\tast\t\tRenderer::fromString" "./renderSabberWorm.php -c" "./renderast.php -c" "./render.php -c"

0 comments on commit 88e50dd

Please sign in to comment.