diff --git a/README.md b/README.md index 2ee535a..c47752f 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,28 @@ bench.concurrency = 'task' // The concurrency mode to determine how tasks are ru await bench.run() ``` +## Retaining Samples + +By default Tinybench does not keep the samples for `latency` and `throughput` to +minimize memory usage. Enable sample retention if you need the raw samples for +plotting, custom analysis, or exporting results. + +You can enable samples retention at the bench level by setting the +`retainSamples` option to `true` when creating a `Bench` instance: + +```ts +const bench = new Bench({ retainSamples: true }) +``` + +You can also enable samples retention by setting the `retainSamples` option to +`true` when adding a task: + +```ts +bench.add('task with samples', () => { + // Task logic here +}, { retainSamples: true }) +``` + ## Aborting Benchmarks Tinybench supports aborting benchmarks using `AbortSignal` at both the bench and task levels: diff --git a/docs/assets/hierarchy.js b/docs/assets/hierarchy.js index 5ceb25e..4e2b524 100644 --- a/docs/assets/hierarchy.js +++ b/docs/assets/hierarchy.js @@ -1 +1 @@ -window.hierarchyData = "eJydks1OwzAQhN9lzy44fy7yDbgiIRUkDlUOId4qVhy7srdcqrw7MqGhhaImvfhgz8w3a3sP3jkKINdpwllacJYJUTLwuDFYk3Y2gNxDEhdbdQgSHtDWDTBotVUgk/SOwc4bkFCbKgQMt1+Cm4Y6A2zYBAkU1CI6FsNGzyBN+O/UJ93imJwW4pCsLaHfVPUhPOr+BYzieNhoozxakOukjMziD/N5O0w5AfstnUvO+DKyM748Yq8wOPOBakaHc5YJXSI6z4/Qr1VoVxh2hu7fnSdUb5qaF6pIB9L1pRYX3BMLnbzDT+Sj67YGCdXkEqNjIliIs+Arr2D27KcfI89ZVvCy7/tPgswwLg==" \ No newline at end of file +window.hierarchyData = "eJydkjFrwzAQhf/LzUqLJGQXbW3WQiEtdAgeXOuChWUpSJcuwf+9qG5ME1Jid9Fweu9974SOEEOgBHoruGBCSSbLsmIQceewIRt8An0Eng9f9wgantA3LTDorDeguXhgcIgONDSuTgnT/bfgrqXeARuHoIGSWWXHahwMDAQXl6nPtsMpWajilGw9YdzVzSk86/4ETOJ82VpnInrQW15lppKXzJf9uOUM7I90KVlykdnybN8NpuA+0SzocM0yo0tGK/UL/VanboPp4OjxI0RC826pfaWabCLb3Gpxwz2zUMGvFlqHfu+Q0MwuMTlmgsvyKvifT7B49/OPoRSTBa+GYfgCnqkwPA==" \ No newline at end of file diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index 29685d4..d41408e 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "eJyVlU9PAjEQxb9Lz0QEBZWbEogahGQh8WA8LMuQrSxT0s4uGuN3N7vA/i1tuc577zfTZrb78csIvokN2BNgELIW2/kUsgELIl8pUO2sfBXSNmIttuG4YoNO9/6vlecWvto0Y2nVlMqwowSQiixHArn2g1PXTK5Cur1+HTLhGzjPSFUrYrYjLlCdpxwNJlA27IQrAgQ5W35BoD+ZxmfCjtE0XK6aER5QLBFWhrHqJhPQAyWiBFbWu9MZTeA5+cQV8UCPK2QTJN08D1Qc0eNSSIKVltVwXYR85xRahrVk3NoNxXYXgf0Muc8NO5JSSCv06HJDTgXNyXe47sLoBvZiJL6FF1wLC7nkdEO7DXzRtBcthvtGFM9hiUk/u8pLWSdcP9x1el09JW1dfbgbtJPFRh0KDGIpAYOfOq0kOVCUiGDhLyMYCkxAEkgNr2mykSsPbp1YEW2kMdbjY7RnnoVoXPOhasvqki651/nxU6iHc8FGmIp987BZ0ZZMN0a/qIXiwjh8ITrGQbExUOyLcOJLnu6MaqPYV5M35VAo08uZlqPrGIPsv9XOxSqgf1vuuhBvShfOhEbw8x8SWjte" \ No newline at end of file +window.navigationData = "eJyVlV1PKjEQhv9Lr8lB8evInRKJGsUESM6F8aIsQ7ayTEk7C8cY/7vZBfazdMpt3/d9Ou1OZ9+/BcF/En1xDxjFoiPWkmLRF1EirQXbzZf/xLRKREcsFc5F/7z396dT5KbSLtuxbNWXyrEPG0AqswoJzEJGh11zuQ7pXV03IS9qCccZmcoi3takNNrjlL3BB8qLfVGWAMG8zT4hcp/M4fNhh+grrlD9iDFQahDmnrKaJh9wDFYnG5izd+cy+sATkqQsqciNK2UfJOu8Mdg0obuZNgRzJ6vlOgn5T1HMFMtkwrYb6NU6Af4MhS8M+2CMNix07wpDjjRNSAZcd2kMA49TJLWCJ1xohlxxhqHDCj6p2pMaI7wjynFYYdLXujYpm4Sz25vzq56bkm1dH9wt2sHCUQcao9QYwOirSatIARSrE5jKWQIDjRswBMbBa5s4cm3gNok1kSMNsRkfIp951Lp1zbtVLutKhuSeJ/un0AwXAkcY6W37sPkil5zIbBK1unS/zKbzSXmMURU5Uta57gdTKiGM3Ut1MXYKx0C9LcMbaVTWu7aLeltPXlRDsck+0qgaXaQY5f/PbiHWAdeX1V2n+tW6wrnQCn78AhtsaCI=" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index 76a8b7a..3825f79 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "eJy1XVGP4zaS/i/qV2/HJUoU1W97uQSXw14WmAR7D43BwWOr0964pYatnkkwmP9+ECVZVWSRKsmdp56xyK9I6uNXpSqZ/pqcmy+X5OHxa/L7sT4kD5CaTVLvXqrkIfmPqt4/J5vk7XxKHpL9aXe5VJfv7Kf3z+3LKdmMHyYPSfJtM2LkkF4x9k19ac9v+7Y5R5DuaDOEukled+eqbq/DmczANs2udnaHww+fq7r9x/HSVnUVNbY7HKqu7Wlqu8Livqn3b+dzVe//nJkZarbCzrGtzrv22NSXmBnSaoUV+yeCP1xfg9x8iQLbyytwz9VL87kS3/S++Tvc9/Nb3R7jizU1WY//r+p8OTa1wMzna8sV1i5V+/YaMzI2WIN9/K3enaLgY4sV6G21Ox+aL9EVQm3WWHg+V5fn5nSImkCN1tnoBDhuoG+xBn2GqOtZ+mV3fokT59piNfpPIuXr296qfz3KrzPr1bdatGqpTiHDqnV5O7XRCU1NVllod5ff44QaGgjRt5nBXnbGsa7D/a1qf91dfo9h/1a1bd9kBX4v/vPuYS36pWpn7qhts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sCtzGHenTMCux8qhW4qdPcg4fyHCobGrB9mttGfCIQjs6kG2+MOxzYje5DltWKDRVQ83tpSp9HgoMwInGjuADyKpBxUyw/9LmYwP51KgVcAuKR1pM+oRqCuR8vEf4yN4Jrc4nlqBFAqb3cqINPx+LNpFSOZS2Q30nmnQOMYgOJOJXQfFJH2w3uWy6K9D8vW3xNTKZft4QtqNRwmiW40DGKEWe4BdVoq/pRrPXJiFneD305FjyOniXb7gDveQ1XhmEwLEe17o1CbAumkv4+kyCBPH+0KvMmEOynu0JwUhUHyv1FIacaPEGy5benfCd73Ad33BziEgKaJ6KhSD64nxSC9xpDCIcD4omR42dykc4nQYPMLHbmvQ3XzQRT14x1IWE+DzYdBikglcFffqcIXkGo6NRwPH+2hYkHzwTsWg8KXMDbuxB5CU1wA9uIhiGHgpHPd0Sg1aErzmY6gE49MwZEJRsL+si6I4hCrcDNM5r0jy8NYH2S4dj7ZHS4hRxmBwDOSGv8Uw4VI2X//YemQOS8twp/KBvcUYTSyZixvcKhS2CONPfLI9GinWrDFPMdC1GGhcCgx83CSvx9fqdKyr5OHx47dv/w8lKvPG"; \ No newline at end of file +window.searchData = "eJy1Xd+P47YR/l98r85GQ1KUtG9tmqAp2hS4C9qHxaHw2bqsE6+0sLV3CQ73vxeiKGtIDqmRvHm6ZE3OjKhvfvAbifqyObefL5v7hy+b347NYXMPotxumt1Tvbnf/LVu9o+b7eblfNrcb/an3eVSX741f7177J5Om+34x839ZvN1O8rIQVxl7Nvm0p1f9l17Tkh64w5DUreb5925brqrOZMayIS66tkdDt9/qpvun8dLVzd1UtnucKj7sadp7AqN+7bZv5zPdbP/Y+bK0LAVeo5dfd51x7a5pNQ4o1ZoMf8k5Nvf10huPycFm59XyD3XT+2nmn3Th+GvcN/Pdbc7Nu92T8+nOnlLhoGX68A1ul6a7pi+MdOQ9fL/U58vx7ZhqPl0HblC26XuXp5TSsYBa2Qff2l2p6TwccQK6V29Ox/az8kVQmPWaHg815fH9nRIqkCD1unog31awTB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s/classes/Bench.html index a51c874..9d2fe54 100644 --- a/docs/classes/Bench.html +++ b/docs/classes/Bench.html @@ -1,11 +1,12 @@
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
ReadonlyconcurrencyExecutes tasks concurrently based on the specified concurrency mode.
+ReadonlyconcurrencyExecutes tasks concurrently based on the specified concurrency mode.
mode is set to null (default), concurrency is disabled.mode is set to 'task', each task's iterations (calls of a task function) run concurrently.mode is set to 'bench', different tasks within the bench run concurrently.ReadonlyiterationsThe amount of executions per task.
-ReadonlynameThe benchmark name.
-ReadonlynowA function to get a timestamp.
-Removes a previously registered event listener.
-ReadonlyruntimeThe JavaScript runtime environment.
-ReadonlyruntimeThe JavaScript runtime version.
-ReadonlysetupA setup function that runs before each task execution.
-ReadonlysignalAn AbortSignal to cancel the benchmark.
-ReadonlyteardownA teardown function that runs after each task execution.
-ReadonlythresholdThe maximum number of concurrent tasks to run
+ReadonlyiterationsThe amount of executions per task.
+ReadonlynameThe benchmark name.
+ReadonlynowA function to get a timestamp.
+Removes a previously registered event listener.
+ReadonlyretainShould samples be retained for further custom processing
+ReadonlyruntimeThe JavaScript runtime environment.
+ReadonlyruntimeThe JavaScript runtime version.
+ReadonlysetupA setup function that runs before each task execution.
+ReadonlysignalAn AbortSignal to cancel the benchmark.
+ReadonlyteardownA teardown function that runs after each task execution.
+ReadonlythresholdThe maximum number of concurrent tasks to run
ReadonlythrowsWhether to throw an error if a task function throws
+ReadonlythrowsWhether to throw an error if a task function throws
ReadonlytimeThe amount of time to run each task.
-ReadonlywarmupWhether to warmup the tasks before running them
-ReadonlywarmupThe amount of warmup iterations per task.
-ReadonlywarmupThe amount of time to warmup each task.
-tasks results as an array
+ReadonlytimeThe amount of time to run each task.
+ReadonlywarmupWhether to warmup the tasks before running them
+ReadonlywarmupThe amount of warmup iterations per task.
+ReadonlywarmupThe amount of time to warmup each task.
+tasks as an array
+The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
get a task based on the task name
the task name
the Task instance
-remove a benchmark task from the task map
+remove a benchmark task from the task map
the task name
the Bench instance
-reset tasks and remove their result
-run the added tasks that were registered using the add method
+reset tasks and remove their result
+run the added tasks that were registered using the add method (sync version)
+table of the tasks results
+table of the tasks results
an optional callback to convert the task result to a table record
the tasks results as an array of table records
-
The Bench class keeps track of the benchmark tasks and controls them.
-