New issue
Advanced search Search tips

Issue 732376 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 732377
Owner: ----
Closed: Jun 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

button click handler slower than WebKit

Reported by jba...@implen.de, Jun 12 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0

Steps to reproduce the problem:
open this index.html file:

<!DOCTYPE HTML>
<!doctype html>
<html>
<body>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <title>Implen</title>
    <script language="javascript" type="text/javascript">
		var toggle = true;
		function myFunction () {
			if (toggle) {
				document.getElementById("demo").innerHTML = "Hello World";
				toggle = false;
			} else {
				document.getElementById("demo").innerHTML = "";
				toggle = true;
			}
		}
	</script>
	<style>
	.centered {text-align:center;}
	.button {
		background-color: #4CAF50;
		border: none;
		color: white;
		padding: 15px 32px;
		text-align: center;
		text-decoration: none;
		display: inline-block;
		font-size: 72px;
		margin: 4px 2px;
		cursor: pointer;
	}	
	.text {
		font-size: 72px;
	}
</style>
</head>
<body>
	<div class="centered">
		<button class="button" onclick="myFunction()">Click me</button>
		<div class="text" id="demo"/>
	</div>
</body>
</html>

What is the expected behavior?
Chromium should be at least as fast as WebKit.

What went wrong?
I ran the above HTML / JavaScript on WebKit and Chromium and recorded the behavior with a highspeed camera (1000 fps):
- WebKit: 66 ms
- Chromium: 105 ms

Did this work before? N/A 

Chrome version: 57.0.2948.0  Channel: dev
OS Version: Debian Wheezy
Flash Version: n/a
 
WebKit_min.mp4
294 KB View Download
Chromium_min.mp4
576 KB View Download
Mergedinto: 732377
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment