diff --git a/Config/config.json b/Config/config.json index 35f13ffa..2f94fad4 100644 --- a/Config/config.json +++ b/Config/config.json @@ -1,6 +1,6 @@ { "client_version" : 38, - "client_repo_url" : "https://github.com/AndyGrant/OpenBench", + "client_repo_url" : "https://github.com/official-clockwork/OpenBench", "client_repo_ref" : "master", "use_cross_approval" : false, @@ -24,25 +24,6 @@ ], "engines" : [ - "4ku", - "Berserk", - "Bit-Genie", - "BlackMarlin", - "Demolito", - "Drofa", - "Equisetum", - "Ethereal", - "FabChess", - "Halogen", - "Igel", - "Koivisto", - "Laser", - "RubiChess", - "Seer", - "Stash", - "Stockfish", - "Weiss", - "Winter", - "Zahak" + "Clockwork" ] -} \ No newline at end of file +} diff --git a/Engines/Clockwork.json b/Engines/Clockwork.json new file mode 100644 index 00000000..87fa58b8 --- /dev/null +++ b/Engines/Clockwork.json @@ -0,0 +1,58 @@ +{ + "private" : false, + "nps" : 3000000, + "source" : "https://github.com/official-clockwork/clockwork", + + "build" : { + "path" : "", + "compilers" : ["clang++","g++"], + "cpuflags" : ["AVX2", "POPCNT"], + "systems" : ["Windows", "Linux"] + }, + + "test_presets" : { + + "default" : { + "base_branch" : "main", + "book_name" : "UHO_Lichess_4852_v1.epd", + "test_bounds" : "[0.00, 3.00]", + "test_confidence" : "[0.05, 0.05]", + "win_adj" : "movecount=5 score=600", + "draw_adj" : "movenumber=40 movecount=8 score=5" + }, + + "STC" : { + "both_options" : "Threads=1 Hash=16", + "both_time_control" : "8.0+0.08", + "workload_size" : 32 + }, + + "LTC" : { + "both_options" : "Threads=1 Hash=64", + "both_time_control" : "40.0+0.4", + "workload_size" : 8 + }, + + "STC nonregr" : { + "both_options" : "Threads=1 Hash=16", + "both_time_control" : "8.0+0.08", + "workload_size" : 32, + "test_bounds" : "[-3.0, 0.0]" + }, + + "LTC nonregr" : { + "both_options" : "Threads=1 Hash=64", + "both_time_control" : "40.0+0.4", + "workload_size" : 8, + "test_bounds" : "[-3.0, 0.0]" + } + }, + + "tune_presets" : { + "default" : { + "book_name" : "UHO_Lichess_4852_v1.epd", + "win_adj" : "movecount=5 score=600", + "draw_adj" : "movenumber=40 movecount=8 score=5" + } + } +} diff --git a/OpenBench/static/copy_text.js b/OpenBench/static/copy_text.js index a5d72afc..3c5e4a31 100644 --- a/OpenBench/static/copy_text.js +++ b/OpenBench/static/copy_text.js @@ -1,8 +1,10 @@ function copy_text(element_id, keep_url) { - var text = document.getElementById(element_id).innerHTML; + var text = "```\n"; + text += document.getElementById(element_id).innerHTML; text = text.replace(/
/g, "\n"); + text += "\n```"; if (keep_url) text += "\n" + window.location.href; diff --git a/OpenBench/templatetags/mytags.py b/OpenBench/templatetags/mytags.py index 8898b969..c667c0ba 100644 --- a/OpenBench/templatetags/mytags.py +++ b/OpenBench/templatetags/mytags.py @@ -56,7 +56,7 @@ def gitDiffLink(test): return OpenBench.utils.path_join(repo, 'compare', test.dev.sha[:8]) return OpenBench.utils.path_join(repo, 'compare', - '{0}..{1}'.format( test.base.sha[:8], test.dev.sha[:8])) + '{0}..{1}?w=1'.format( test.base.sha[:8], test.dev.sha[:8])) def shortStatBlock(test): @@ -99,6 +99,7 @@ def longStatBlock(test): lower, elo, upper = OpenBench.stats.Elo(test.results()) lines = [ + 'Test | %s' % (prettyDevName(test)), 'Elo | %0.2f +- %0.2f (95%%)' % (elo, max(upper - elo, elo - lower)), '%-5s | %s Threads=%d Hash=%dMB' % (type_text, timecontrol, threads, hashmb), ]