init
This commit is contained in:
38
src/main/webapp/jsp/cpu.jsp
Normal file
38
src/main/webapp/jsp/cpu.jsp
Normal file
@@ -0,0 +1,38 @@
|
||||
<%@page import="java.util.Calendar"%>
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<%@ page import="java.util.Date" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Insert title here</title>
|
||||
</head>
|
||||
|
||||
<%
|
||||
|
||||
|
||||
while (true)
|
||||
{
|
||||
int time=0;
|
||||
|
||||
for (int i=1; i<100000;i++)
|
||||
{
|
||||
double temp = Math.random()* Math.random() * 100;
|
||||
String str = "aaa";
|
||||
str = str+str;
|
||||
|
||||
}
|
||||
|
||||
Thread.sleep(100);
|
||||
|
||||
time++;
|
||||
if (time==200)
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
%>
|
||||
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user