mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Core: Attempt at AlpineLinux clang thread_local problem workaround
This commit is contained in:
parent
95e0b94fad
commit
420f3c720f
3 changed files with 36 additions and 3 deletions
21
benchmarks/DarkTheme/DarkTheme.cpp
Normal file
21
benchmarks/DarkTheme/DarkTheme.cpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include <Core/Core.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
Color c = Color(100, 140, 200);
|
||||
for(int i = 0; i < 100000000; i++) {
|
||||
RTIMING("DarkTheme");
|
||||
DarkTheme(c);
|
||||
}
|
||||
for(int i = 0; i < 500000000; i++) {
|
||||
RTIMING("DarkThemeCached");
|
||||
DarkThemeCached(c);
|
||||
}
|
||||
Mutex m;
|
||||
for(int i = 0; i < 100000000; i++) {
|
||||
RTIMING("Mutex");
|
||||
Mutex::Lock __(m);
|
||||
}
|
||||
}
|
||||
9
benchmarks/DarkTheme/DarkTheme.upp
Normal file
9
benchmarks/DarkTheme/DarkTheme.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
Core;
|
||||
|
||||
file
|
||||
DarkTheme.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue