Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 92639 Details for
Bug 116487
create performance test harness
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
RetrieveTaskListPerformanceTest
RetrieveTaskListPerformanceTest.java (text/plain), 2.36 KB, created by
Jingwen 'Owen' Ou
on 2008-03-15 22:25:20 EDT
(
hide
)
Description:
RetrieveTaskListPerformanceTest
Filename:
MIME Type:
Creator:
Jingwen 'Owen' Ou
Created:
2008-03-15 22:25:20 EDT
Size:
2.36 KB
patch
obsolete
>/******************************************************************************* > * Copyright (c) 2004, 2007 Mylyn project committers and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at > * http://www.eclipse.org/legal/epl-v10.html > *******************************************************************************/ > >package org.eclipse.mylyn.tasks.tests.performance; > >import java.io.File; > >import org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter; >import org.eclipse.mylyn.tasks.core.TaskList; >import org.eclipse.mylyn.tasks.tests.TaskTestUtil; >import org.eclipse.mylyn.tasks.ui.TaskListManager; >import org.eclipse.mylyn.tasks.ui.TasksUiPlugin; >import org.eclipse.test.performance.PerformanceTestCase; > >public class RetrieveTaskListPerformanceTest extends PerformanceTestCase { > > private static final String TASK_LIST_4000 = "testdata/performance/tasklist-4000.xml.zip"; > > private TaskList taskList; > > private TaskListManager taskListManager; > > @Override > protected void setUp() throws Exception { > super.setUp(); > > //init > taskListManager = TasksUiPlugin.getTaskListManager(); > taskList = taskListManager.getTaskList(); > taskList.reset(); > > //read tasklist > final File file = TaskTestUtil.getLocalFile(TASK_LIST_4000); > final TaskListWriter taskListWriter = taskListManager.getTaskListWriter(); > taskListWriter.readTaskList(taskList, file, TasksUiPlugin.getTaskDataManager()); > } > > @Override > protected void tearDown() throws Exception { > super.tearDown(); > > taskList.reset(); > } > > public void testRetrieveQueriesWith4000Tasks() { > > for (int i = 0; i < 6401; i++) { > startMeasuring(); > taskList.getQueries(); > stopMeasuring(); > } > > commitMeasurements(); > assertPerformance(); > } > > public void testRetrieveActiveTasksWith4000Tasks() { > > for (int i = 0; i < 6401; i++) { > startMeasuring(); > taskList.getRepositoryTasks("https://bugs.eclipse.org/bugs"); > stopMeasuring(); > } > > commitMeasurements(); > assertPerformance(); > } > > public void testRetrieveTasksWith4000Tasks() { > > for (int i = 0; i < 6401; i++) { > startMeasuring(); > taskList.getAllTasks(); > stopMeasuring(); > } > > commitMeasurements(); > assertPerformance(); > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 116487
:
83034
|
83035
|
92635
|
92636
|
92637
|
92638
| 92639 |
92640
|
92641
|
92642
|
92643
|
92644
|
95149
|
95791
|
95792
|
96692
|
96728
|
97960
|
146251