Skip to content

Commit

Permalink
Add INLINEABLE annotations
Browse files Browse the repository at this point in the history
It turns out, these _appear_ to make a (modest) difference. In general,
the INLINEABLE benchmarks use slightly less memory (file logging is
the most significant, at 10% less allocated), and the benchmarks are
_generally_ faster (though some are slightly slower).

Might as well add these in. Our (extremely blunt) strategy is to
add INLINEABLE to any function involving polymorphic monad m, to
prevent polymorphic binds from blocking optimizations.
  • Loading branch information
tbidne committed Jun 5, 2024
1 parent 31c3382 commit b461844
Show file tree
Hide file tree
Showing 39 changed files with 313 additions and 311 deletions.
12 changes: 6 additions & 6 deletions benchmarks/baseline_9.8.2.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Name,Mean (ps),2*Stdev (ps),Allocated,Copied,Peak Memory
All.Basic Logging.10_000,32054981100,2719280254,197767499,1491201,15728640
All.Basic Logging.100_000,284949455400,3088076064,1921481603,12566747,22020096
All.Command Logging.10_000,8675987087,358680480,7701613,170721,22020096
All.Command Logging.100_000,818098265200,26302296974,427536247,2438572,22020096
All.File Logging.10_000,28730622578,1775853462,20914526,638780,22020096
All.File Logging.100_000,5507945763000,212603894328,2001917452,23482169,22020096
All.Basic Logging.10_000,13994919850,788201886,164620558,1226940,14680064
All.Basic Logging.100_000,134352162600,3092666264,1642240890,10696009,23068672
All.Command Logging.10_000,10629656550,664104250,25934036,1142611,23068672
All.Command Logging.100_000,141102413675,9240202760,290511672,12695602,23068672
All.File Logging.10_000,67230350850,4015181822,114474577,6010048,23068672
All.File Logging.100_000,1063772303400,41051284184,1801811732,93045236,23068672
70 changes: 35 additions & 35 deletions benchmarks/baseline_9.8.2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 7 additions & 10 deletions benchmarks/baseline_ubuntu-latest_9.10.1_ci.csv
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
Name,Mean (ps),2*Stdev (ps),Allocated,Copied,Peak Memory
All.Basic Logging.10_000,424874375,35496180,858557,4866,8388608
All.Basic Logging.100_000,414872187,34787626,858666,4978,9437184
All.Basic Logging.1_000_000,418198593,27627318,858769,4816,9437184
All.Command Logging.10_000,594754062,50058574,977834,6139,9437184
All.Command Logging.100_000,579419062,41957020,977929,6235,9437184
All.Command Logging.1_000_000,596570625,46203452,991918,6708,9437184
All.File Logging.10_000,816050937,46860996,1118291,7041,9437184
All.File Logging.100_000,822995625,60041220,1118089,7180,9437184
All.File Logging.1_000_000,801665000,58974894,1117985,7194,9437184
Name,Mean (ps),2*Stdev (ps)
All.Basic Logging.10_000,476152364,24476970
All.Basic Logging.100_000,463564247,38922986
All.Command Logging.10_000,854794443,45266414
All.Command Logging.100_000,873293168,59809604
All.File Logging.10_000,1135163846,112200678
All.File Logging.100_000,1215724990,69546408
124 changes: 44 additions & 80 deletions benchmarks/baseline_ubuntu-latest_9.10.1_ci.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 6 additions & 9 deletions benchmarks/baseline_ubuntu-latest_9.6.5_ci.csv
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
Name,Mean (ps),2*Stdev (ps)
All.Basic Logging.10_000,479008234,27104218
All.Basic Logging.100_000,482315714,30981148
All.Basic Logging.1_000_000,473236928,21974168
All.Command Logging.10_000,837685703,32292698
All.Command Logging.100_000,876086443,76422808
All.Command Logging.1_000_000,856569053,65006562
All.File Logging.10_000,1238423746,107805336
All.File Logging.100_000,1206316431,77858922
All.File Logging.1_000_000,1172846612,95251716
All.Basic Logging.10_000,443135468,42969818
All.Basic Logging.100_000,442791404,42537084
All.Command Logging.10_000,638715284,53117892
All.Command Logging.100_000,624669146,33622684
All.File Logging.10_000,881296050,85030006
All.File Logging.100_000,883412987,61160762
Loading

0 comments on commit b461844

Please sign in to comment.