aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark.c
AgeCommit message (Collapse)Author
2021-02-21Add NumNodes property to benchmark JSONLeandro Pereira
2021-02-21Add support for NUMA nodesLeandro Pereira
Related to #599.
2021-02-02Remove the ability to load benchmarks.confLeandro Pereira
Now that the sync manager is working fine, and we have the same data in a structured way in JSON files, reading from this legacy format doesn't need to be supported any longer.
2020-07-04Break lines so that dialogs are not that wide in GTK3Leandro Pereira
2020-06-06Store/send machine type (laptop/desktop/etc) in benchmark resultsLeandro Pereira
2020-05-18Benchmarks can't be cancelled during sync, so remove Cancel buttonLeandro Pereira
2020-05-15Disable SyncManager while showing benchmark dialogLeandro Pereira
2020-05-13Show "Benchmarking..." dialog on top of sync managerLeandro Pereira
2020-05-13DataFromSuperUser should be serialized as boolean, not intLeandro Pereira
2020-05-10Show benchmark dialog while sending benchmark resultsLeandro Pereira
2020-05-09Update SyncManager to use the new APILeandro Pereira
2020-05-09Generate benchmark JSON instead of the legacy .conf formatLeandro Pereira
No need to keep the .conf format around for a while since the only usage of this function was for the SyncManager, that has been disabled for a while.
2020-05-09GSList will be sorted anyway, so prepend rather than appendLeandro Pereira
2020-05-09Remove moreinfo with BENCH prefix right before preparing for shellLeandro Pereira
2020-05-09Factor benchmark window calculation to its own functionLeandro Pereira
2020-05-09Remove unused `results_list` variableLeandro Pereira
2020-05-09Unrefing the JSON parser unrefs its children nodesLeandro Pereira
2020-05-09Load benchmark results from JSON filesLeandro Pereira
2020-05-03Refactor how benchmark.conf is loaded when including resultsLeandro Pereira
This is a scaffolding method to add support for JSON benchmark results without disrupting current working code. (Should also have plugged a memory leak.)
2020-05-03Misc. cleanups in benchmark.cLeandro Pereira
2020-05-03hi_exported_methods() should return a const pointerLeandro Pereira
2020-05-03Simplify benchmark:::hi_module_init()Leandro Pereira
2020-05-03hi_module_get_about() should return a const pointerLeandro Pereira
2020-05-03Reindent benchmark.cLeandro Pereira
2020-01-17benchmark: "This Machine" in resultsBurt P
To test the new label escape stuff, and for https://github.com/lpereira/hardinfo/issues/516 Signed-off-by: Burt P <pburt0@gmail.com>
2019-12-28Use g_ascii_strtod() in bench_value_from_str()Burt P
Co-authored-by: Ondrej Čerman <ondrej.cerman@gmail.com> Signed-off-by: Burt P <pburt0@gmail.com>
2019-12-28fix bench_value_from_str() for floats with , for decimalBurt P
Fixes https://github.com/lpereira/hardinfo/issues/497 Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-14Benchmark: fixes, user_note, verifiable test dataBurt P
* fix zlib display order * fix cryptohash MiB/s calculation * revision and params for other benchmarks * allow attaching user note to bench result with -u * don't inlcude the new result value bits if they are empty/invalid in bench_value_to_str(). bench_value_from_str() doesn't need to be modified. * bench_results: clean old result cpu name for x86 * use problem_marker() from dmi_memory to mark old version bench results * benchmark: verifiable test data size and content - The test data benchmark.data is stored in a file that could be edited to change the size or content. /* to guarantee size */ gchar *get_test_data(gsize min_size); /* to checksum content */ char *md5_digest_str(const char *data, unsigned int len); Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-10benchmark: make sure lookup key is uniqueBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-14Fix buffer overflow when performing parallel benchmarksLeandro Pereira
2019-07-10benchmark: add extra fields to result for revision and informationBurt P
* add an integer revision field * add an extra information string field * zlib benchmark: new revision[1] is 2, so that old results are obviously old, and now the zlib version string will be stored in extra information. [1] as of 6a8e19a14305079b03e45eeb0580a45104f300dd Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-28Better benchmark in progress dialog in GTK+3Leandro Pereira
While the shell isn't rewritten to take advantage of GTK+3 only, let's just ignore these deprecation warnings.
2019-06-20move devices/memory to computer/memory usageBurt P
As discussed in https://github.com/lpereira/hardinfo/issues/345 Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-30add hardinfo param for maximum number of benchmark results to includeBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04benchmark/report: sort results for report, limit rangeBurt P
For generated reports, the benchmark results are now sorted. Also, only the (10) nearest results are included to avoid output clutter. Perhaps the number could be set in a hardinfo parameter. Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-27Moving configuration files to user's configuration folderTotalCaesar659
Build the configuration file path using g_get_user_config_dir() instead of g_get_home_dir().
2018-04-24hardinfo: add cli option to skip benchmarksBurt P
If you just need the hardware report, this makes it so much faster. Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-12benchmark.c: remove debug printf()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27Fix benchmark_parallel_for() to use correct number of threadsBurt P
If (end - start) / threads left a remainder, benchmark_parallel_for() would start an extra thread for the leftover elements. Now, it has the last thread process the few extra elements. Added a note: benchmark_parallel_for(): element [start] included, but [end] is excluded. callback(): expected to processes elements [start] through [end] inclusive. Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27benchmarks: split individual test funcs out of benchmark.c frameworkBurt P
The idea here is to make adding/removing benchmark tests easier by having benchmark.c be the framework and all the functioned needed for individual benchmarks live in benches.c. Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27benchmark: New benchmark typesBurt P
New benchmark types: * benchmark_crunch_for(): call function repeatedly for a number of seconds; result is number of completions. * benchmark_parallel(): one call for each available thread up to n_threads; result is sum of return values. Tweaks: * Store return values from callback via benchmark_parallel_for_dispatcher() Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27Add cli param to format result for -bBurt P
For running benchmarks from the command line, add a new param to specify the output format: -g "conf" gives a line suitable for benchmark.conf -g "shell" gives the complete "moreinfo" shell data -g "short" (or nothing) gives the bench_value string as before Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27Benchmark results: store threads usedBurt P
Benchmark results store actual number of threads used by benchmark when it was run. Previously, results assumed all available threads were used. Examples: * CPU Fib only uses one * FPU FFT uses 4, 2, or 1 * N-Queens uses 10, 5, 2, or 1 Signed-off-by: Burt P <pburt0@gmail.com>
2017-09-10Fix compilation warning when benchmarkingTotalCaesar659
2017-08-21Add ability to specify selected row, use it in benchmark resultsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Don't include benchmark result that was canceledBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21bench_results: clean key in result listBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Benchmark result detailsBurt P
* More information can be saved in benchmark.conf, while still being compatible with older versions. * Selecting a result give additional information about the result and the machine the produced it.
2017-08-11CPU Frequency Desc and benchmark result re-formatBurt P
Current CPU configurations aren't properly represented in Hardinfo. For SMT, each hardware thread is still reported as a CPU. Clusters with different CPU clock rates are not reported. It is common for ARM to pair a cluster of fast cores with a cluster of slower, but more power-efficient cores. These changes attempt to address this. The getProcessorFrequency method now returns the processor's max frequency for all its cores. While the new getProcessorFrequencyDesc lists each unique frequency with a prefix Nx with the count of cores at that freqency. Benchmark results have been reformated to use the de-prefixed getProcessorName and getProcessorFrequencyDesc. As an example from benchmark.conf: 4x AMD Phenom(tm) II X4 940 Processor | 800 MHz becomes: AMD Phenom(tm) II X4 940 Processor | 4x 800 MHz Which, I think, makes much more sense, as it works well with this kind of thing: Qualcomm Snapdragon 691 | 4x 1400 MHz + 4x 800 MHz Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-04benchmarks: hide gui bench for gtk3+Burt P
Signed-off-by: Burt P <pburt0@gmail.com>