Skip to content

Commit 9c54203

Browse files
authored
Merge pull request #5838 from xtermjs/fix_terminal_benchmark
fix utf8 terminal benchmark
2 parents cbe59a1 + 22778b5 commit 9c54203

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/benchmark/Terminal.benchmark.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ perfContext('Terminal: ls -lR /usr/lib', () => {
4444
}
4545
});
4646

47-
perfContext('write/string/async', () => {
47+
perfContext('write/string', () => {
4848
let terminal: CoreBrowserTerminal;
4949
before(() => {
5050
terminal = new CoreBrowserTerminal({ cols: 80, rows: 25, scrollback: 1000 });
@@ -55,13 +55,13 @@ perfContext('Terminal: ls -lR /usr/lib', () => {
5555
}, { fork: false }).showAverageThroughput();
5656
});
5757

58-
perfContext('write/Utf8/async', () => {
58+
perfContext('write/utf8', () => {
5959
let terminal: CoreBrowserTerminal;
6060
before(() => {
6161
terminal = new CoreBrowserTerminal({ cols: 80, rows: 25, scrollback: 1000 });
6262
});
6363
new ThroughputRuntimeCase('', async () => {
64-
await new Promise<void>(res => terminal.write(content, res));
64+
await new Promise<void>(res => terminal.write(contentUtf8, res));
6565
return { payloadSize: contentUtf8.length };
6666
}, { fork: false }).showAverageThroughput();
6767
});

0 commit comments

Comments
 (0)