cmuratori / termbench Goto Github PK
View Code? Open in Web Editor NEWSimple benchmark for terminal output
License: MIT License
Simple benchmark for terminal output
License: MIT License
Same problem as with refterm, a lot of people don't know what a 64-bit vs. 32-bit build is.
- Casey
Add a bunch of VT and Unicode stuff at the end just so you can see along with the benchmark whether they handle RTL, Arabic, Hebrew, blink, inverse video, whatever.
- Casey
Hi, I slightly modified the program to support MacOS Apple silicon (also retested the software back on Win64, Ubuntu Linux). It's only affecting the cpuid header which is not available on Mac. I was wondering if you would accept the pull request?
Running build.bat
there are 2 warning and 2 errors. Sample error:
termbench.cpp:286:43: error: constant expression evaluates to 17179869184 which cannot be narrowed to type 'size_t' (aka 'unsigned int') [-Wc++11-narrowing]
{"ManyLine", ManyLine, {1*Meg, 1*Gig, 16*Gig}},
^~~~~~
termbench.cpp:286:43: note: insert an explicit cast to silence this issue
{"ManyLine", ManyLine, {1*Meg, 1*Gig, 16*Gig}},
^~~~~~
static_cast<size_t>( )
How do you build termbench
on Win11 + VS2022? Thx.
You can wake up the one who is sleeping, but not one who is pretending to sleep.
Îl poți trezi pe omul care doarme, dar nu și pe cel care se preface că doarme.
According to my registry I have version 6.3..9600
(yes double dot) of the sdk.
So the ENABLE_VIRTUAL_TERMINAL_PROCESSING is not defined, I slapped in this after include windows.h and it worked fine.
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
#endif
Still slow though...
I just wanted to share my benchmark results:
# gnome-terminal
CPU: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
VT support: no
ManyLine: 82.4858s (0.0121gb/s)
LongLine: 71.3162s (0.0140gb/s)
FGPerChar: 5.1682s (0.0562gb/s)
FGBGPerChar: 9.6057s (0.0587gb/s)
TermMarkV2 Normal: 168.5759s (0.0169gb/s)
# alacritty
CPU: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
VT support: no
ManyLine: 24.2993s (0.0412gb/s)
LongLine: 19.4805s (0.0513gb/s)
FGPerChar: 3.7274s (0.0779gb/s)
FGBGPerChar: 8.0369s (0.0702gb/s)
TermMarkV2 Normal: 55.5441s (0.0514gb/s)
# foot (https://codeberg.org/dnkl/foot)
CPU: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
VT support: no
ManyLine: 19.0191s (0.0526gb/s)
LongLine: 6.5224s (0.1533gb/s)
FGPerChar: 2.8055s (0.1035gb/s)
FGBGPerChar: 5.2957s (0.1065gb/s)
TermMarkV2 Normal: 33.6426s (0.0848gb/s)
# Hyper (https://hyper.is/) - it had some issues with the color output
CPU: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
VT support: no
ManyLine: 15.6713s (0.0638gb/s)
LongLine: 7.8218s (0.1278gb/s)
FGPerChar: 2.9988s (0.0968gb/s)
FGBGPerChar: 6.2595s (0.0901gb/s)
TermMarkV2 Normal: 32.7513s (0.0872gb/s)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.